Manual control#
Related API#
- /api/remote/control_mode/list
- /api/remote/control_mode/select
- /api/remote/control_mode/status
- /api/remote/operator/status
- /api/remote/command/pedal
- /api/remote/command/acceleration
- /api/remote/command/velocity
- /api/remote/command/steering
- /api/remote/command/gear
- /api/remote/command/turn_indicators
- /api/remote/command/hazard_lights
- /api/local/control_mode/list
- /api/local/control_mode/select
- /api/local/control_mode/status
- /api/local/operator/status
- /api/local/command/pedal
- /api/local/command/acceleration
- /api/local/command/velocity
- /api/local/command/steering
- /api/local/command/gear
- /api/local/command/turn_indicators
- /api/local/command/hazard_lights
Description#
This API is used to manually control the vehicle, and provides the same interface for different operators: remote and local. For example, the local operator controls a vehicle without a driver's seat using a joystick, while the remote operator provides remote support when problems occur with autonomous driving. The command sent will be used when operation mode is remote or local.
Operator status#
The application needs to determine whether the operator is able to drive and send that information via the operator status API. If the operator is unable to continue driving during manual operation, Autoware will perform MRM to bring the vehicle to a safe state. For level 3 and below, the operator status is referenced even during autonomous driving.
Control mode#
Since there are multiple ways to control a vehicle, such as pedals or acceleration, the application must first select a control mode.
Mode | Description |
---|---|
disabled | This is the initial mode. When selected, all command APIs are unavailable. |
pedal | This mode provides longitudinal control using the pedals. |
acceleration | This mode provides longitudinal control using the target acceleration. |
velocity | This mode provides longitudinal control using the target velocity. |
Commands#
The commands available in each mode are as follows.
Command | disabled | pedal | acceleration | velocity |
---|---|---|---|---|
pedal | - | ✓ | - | - |
acceleration | - | - | ✓ | - |
velocity | - | - | - | ✓ |
steering | - | ✓ | ✓ | ✓ |
gear | - | ✓ | ✓ | ✓ |
turn_indicators | - | ✓ | ✓ | ✓ |
hazard_lights | - | ✓ | ✓ | ✓ |