Drive to the designated position#
The application sets a route to the goal and starts autonomous driving. Autoware drives to the goal and stops there.
Related API#
Sequence#
- Set the route. When the route state is
UNSET, call /api/routing/set_route_points with the goal pose and the waypoints, or /api/routing/set_route with lanelet segments. The route state changes toSET. - Wait until the autonomous mode is available. Autoware checks its components, for example the route, the localization, and the planning output. When all checks pass,
is_autonomous_mode_availableof /api/operation_mode/state becomestrue. - Start. Call /api/operation_mode/change_to_autonomous. Autoware starts to drive along the route.
- Arrive. At the goal, the route state changes to
ARRIVED. In the default implementation, the routing node of AD API then changes the operation mode to stop. - Clear the route. Call /api/routing/clear_route. The route state changes to
UNSET, and the application can set the next route.
To change the goal while the vehicle drives, use /api/routing/change_route_points or /api/routing/change_route. See routing for the route states.