ros2 / demos

Apache License 2.0
502 stars 330 forks source link

Make lifecycle demo automatically exit when done #558

Closed sloretz closed 2 years ago

sloretz commented 2 years ago

Fixes #504

This makes the lifecyle demo automatically exit when it's completed. First this PR fixes a bug in lifecycle_service_client where it's stuck waiting for the future to complete forever because of ros2/rclcpp#1916. Next this PR adds a Shutdown action to the on_exit argument of the lifecycle_service_client Node so that when it shuts down the other nodes are killed too.

sloretz commented 2 years ago

CI (build: --packages-up-to lifecycle test: --packages-select lifecycle)