Skip to content

Commit

Permalink
im too lazy to type all these, runing a script
Browse files Browse the repository at this point in the history
  • Loading branch information
wuxiaohua1011 committed May 2, 2021
1 parent c85b617 commit b1ab7cf
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions ROAR/agent_module/michael_pid_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ def run_step(self, vehicle: Vehicle,
sensors_data=sensors_data)
self.transform_history.append(self.vehicle.transform)
control = self.local_planner.run_in_series()
print(self.vehicle.transform)
return control
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def run_in_series(self) -> VehicleControl:
break
target_waypoint = self.way_points_queue[self._curr_waypoint_index]
control: VehicleControl = self.controller.run_in_series(next_waypoint=target_waypoint)
self.logger.debug(f"control -> {control} | next waypoint -> {target_waypoint.location}")
# self.logger.debug(f"control -> {control} | next waypoint -> {target_waypoint.location}")
return control

def set_closeness_threhold(self, config: dict):
Expand Down
4 changes: 2 additions & 2 deletions runner_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ def main():
npc_agent_class=PurePursuitAgent)
try:
my_vehicle = carla_runner.set_carla_world()
agent = RecordingAgent(vehicle=my_vehicle, agent_settings=agent_config)
carla_runner.start_game_loop(agent=agent, use_manual_control=False)
agent = PIDAgent(vehicle=my_vehicle, agent_settings=agent_config)
carla_runner.start_game_loop(agent=agent, use_manual_control=True)
except Exception as e:
logging.error(f"Something bad happened during initialization: {e}")
carla_runner.on_finish()
Expand Down

0 comments on commit b1ab7cf

Please sign in to comment.