ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

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

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

William gravatar image

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

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

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



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

Seen: 531 times

Last updated: Mar 29 '19