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

run/stop a node after other node stops

asked 2019-02-18 05:26:26 -0500

JoseJaramillo gravatar image

Hello everybody,

I am running multiple nodes, one of them (an exploration node) stops working when it finishes its task.

I am hopping to run and stop another different nodes when this happens.

can anyone please help me with telling me which tools I might use for this?

I am using ROS kinetic and gazebo 7.x

Thanks!

edit retag flag offensive close merge delete

Comments

For the case, you want to end other nodes with the exploration one, check here

kosmastsk gravatar image kosmastsk  ( 2019-02-18 10:59:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-02-19 00:30:12 -0500

mgruhler gravatar image

I guess there is no built-in way to handle this out of the box. (Besides what @kosmastsk suggested, though this seems kind of harsh :-) ).

Two way come to my mind:

  • implement some kind of service in your exploration node which triggers the shutdown of the respective other nodes. With a service, you'd be able to check when the shutdown has occured.
  • use a bond. This is specifically implemented to provide the functionality you'd like to have.
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-02-18 05:26:26 -0500

Seen: 579 times

Last updated: Feb 19 '19