Execute one step of navigation. :param debug: boolean flag for debugging :return: control
(debug=False)
| 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 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected