Get on and get off#
When the vehicle stops at a bus stop or a pickup point, the application opens the doors for the passengers and closes them before the vehicle starts again. This use case needs a vehicle that has a software interface for the doors.
Related API#
Sequence#
- Find the doors. Call /api/vehicle/doors/layout. Use the
rolesfield to find the doors for getting on (GET_ON) and getting off (GET_OFF). - Open the doors. Call /api/vehicle/doors/command with the
OPENcommand for these doors. - Wait for the passengers. Watch /api/vehicle/doors/status and your own passenger checks.
- Close the doors. Call /api/vehicle/doors/command with the
CLOSEcommand. Wait until the status of all doors isCLOSED.
Restrictions#
The default implementation (vehicle_door node of autoware_default_adapi_universe) rejects a door command in these cases:
- The command opens a door and the operation mode is not stop.
- Autoware control is disabled. Set the
check_autoware_controlparameter tofalseto allow door commands during direct control.