ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
In the past, I've done this using a callback function in which the subscriber unsubscribes itself at the end. So for roscpp, this would be the ros::Subscriber::shutdown()
method. Make sure to also set the subscriber buffer size to 1.
2 | No.2 Revision |
In the past, I've done this using a callback function in which the subscriber unsubscribes itself at the end. So for roscpp, rclpp, this would be the
method. Make sure to also set the subscriber buffer size to 1.ros::Subscriber::shutdown()rclpp::Subscription::reset()