Launch and terminate#
AD API does not have an API to launch or terminate Autoware. The application starts Autoware as a process, for example with ros2 launch autoware_launch autoware.launch.xml, and stops that process to terminate it.
The AD API nodes start together with Autoware. The launch_api argument of autoware.launch.xml is true by default. It includes autoware_api.launch.xml of tier4_autoware_api_launch, which starts the default AD API implementation (default_adapi.launch.py of autoware_default_adapi_universe).
Related API#
Sequence#
- Start Autoware. The application starts Autoware, for example as a system service or with
ros2 launch. The AD API nodes start with it. - Check the interface version. Call /api/interface/version until it responds. The response shows that AD API is ready. The version follows Semantic Versioning, so a different major version means that the application is not compatible.
- Use the vehicle. Continue with the other use cases, for example initialize the pose.
- Terminate Autoware. Stop the process that runs Autoware, then shut down the computer.