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

Method emergency_stop

agents/navigation/agent.py:222–234  ·  view source on GitHub ↗

Send an emergency stop command to the vehicle :return: control for braking

()

Source from the content-addressed store, hash-verified

220
221 @staticmethod
222 def emergency_stop():
223 """
224 Send an emergency stop command to the vehicle
225
226 :return: control for braking
227 """
228 control = carla.VehicleControl()
229 control.steer = 0.0
230 control.throttle = 0.0
231 control.brake = 1.0
232 control.hand_brake = False
233
234 return control

Callers 3

run_stepMethod · 0.80
run_stepMethod · 0.80
run_stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected