ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

Is executor.shutdown() functionality available in rclcpp?

asked 2019-01-09 08:10:58 -0500

swati gravatar image

Hi everyone, In my application I am using components those are running as a thread. I want to shutdown and relaunch it to have good control over it. I have found this functionality in rclpy.executors that provides shutdown() concept. However, I want to achieve the same via rclcpp. Is it available in rclcpp or else what is the alternative way to achieve it?
Any help on this will be appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-29 16:36:04 -0500

William gravatar image

You can cancel an executor to stop a spin() from blocking:

http://docs.ros2.org/crystal/api/rclc...

Separately you can shutdown completely, requiring another call to rclcpp::init(), see:

http://docs.ros2.org/crystal/api/rclc...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-01-09 08:10:58 -0500

Seen: 531 times

Last updated: Mar 29 '19