Send an emergency stop command to the vehicle :return: control for braking
()
| 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 |