Closed Barry-Xu-2018 closed 2 years ago
If pre-shutdown callback is supported (https://github.com/ros2/rclcpp/issues/1706#issuecomment-872613908), I can simplify current codes.
probably it would be nice to have only specified example to introduce wait_for_acknowledgement
w/o custom_shutdown_func
? but i think it is still okay, any opinions?
probably it would be nice to have only specified example to introduce
wait_for_acknowledgement
w/ocustom_shutdown_func
? but i think it is still okay, any opinions?
Yes.
The example want to show how to wait the confirmation of subscribers while calling shutdown.
But there is no pre-shutdown callback interface.
So I have to use custom_shutdown_func
to implement it.
About 'pre-shutdown', it was discussed in https://github.com/ros2/rclcpp/issues/1706#issuecomment-872613908.
I also submitted an implementation ros2/rclcpp#1714. But this implementation need to be discussed.
After this feature is implemented, we can simplify this example.
@Barry-Xu-2018 can we also have example for rclpy
?
@Barry-Xu-2018 can we also have example for
rclpy
?
Yeah. I will consider adding this example.
we can run CI once https://github.com/ros2/rclcpp/pull/1662 is merged.
Example code for python isn't added.
It is because rclpy has this issue ros2/rclpy#532. I added comments https://github.com/ros2/rclpy/issues/532#issuecomment-972610972.
do rebase
@ros-pull-request-builder retest this please
@clalancette it appears that CI still does not have https://github.com/ros2/rclcpp/pull/1662, that leads this PR to build failure. Do you know how long it takes? i was thinking this is done by nightly build.
@clalancette it appears that CI still does not have ros2/rclcpp#1662, that leads this PR to build failure. Do you know how long it takes? i was thinking this is done by nightly build.
So for the Rpr job to pass, we need to make an explicit source and bloom release to get PRs in. I can do one of those later today.
That said, you should be able to run a CI job from https://ci.ros2.org to verify this functionality on all platforms, and that will include the latest sources.
@fujitatomoya
I update code to fix build warning on macOS. Could you re-trigger CI ?
@ros-pull-request-builder retest this please
@ivanpauno @sloretz @clalancette could you help this with review?
@ros-pull-request-builder retest this please
Friendly ping @ivanpauno
@ivanpauno really appreciate for helping on this, thanks 👍
This commit depends on the merge of ros2/rcl#913 and ros2/rclcpp#1662.