ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Callback function when a node is created/destroyed

asked 2013-06-11 00:42:22 -0500

Javier J. Salmerón García gravatar image

updated 2013-06-11 00:43:40 -0500

Hello everyone,

I am developing a parallel solution with ROS, and I want to develop a node that executes certain functions when a another node in the architecture is added or destroyed at runtime. I know that I can do some status polling with rosgraph library, but is there any way to have a callback function when any of the other nodes execute ros::init or ros::shutdown?

Thank you in advance

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-06-11 14:31:43 -0500

joq gravatar image

Sounds like an application for the bond package.

edit flag offensive delete link more

Comments

Thank you, with this library I can know when a certain node finishes. Any ideas of how to detect that a new node has been created?

Javier J. Salmerón García gravatar image Javier J. Salmerón García  ( 2013-06-12 04:28:56 -0500 )edit

I suppose it could announce itself on a topic, when ready to run.

joq gravatar image joq  ( 2013-06-12 04:35:21 -0500 )edit

Question Tools

Stats

Asked: 2013-06-11 00:42:22 -0500

Seen: 404 times

Last updated: Jun 11 '13