MCPcopy Create free account
hub / github.com/OpenDriveLab/DriveAdapter / run_step

Method run_step

agents/navigation/agent.py:55–71  ·  view source on GitHub ↗

Execute one step of navigation. :param debug: boolean flag for debugging :return: control

(debug=False)

Source from the content-addressed store, hash-verified

53
54 @staticmethod
55 def run_step(debug=False):
56 """
57 Execute one step of navigation.
58
59 :param debug: boolean flag for debugging
60 :return: control
61 """
62 control = carla.VehicleControl()
63
64 if debug:
65 control.steer = 0.0
66 control.throttle = 0.0
67 control.brake = 0.0
68 control.hand_brake = False
69 control.manual_gear_shift = False
70
71 return control
72
73 def _is_light_red(self, lights_list):
74 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected