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

Possible to communicate with new master without process restart?

asked 2011-11-11 05:53:07 -0500

updated 2011-11-11 05:53:54 -0500

Often when debugging, a launch which was responsible for the original Master goes down. When this happens things that were connected that stay up are unable to communicate with the new Master when it comes up.

  • Is there a way around this?
  • Is it perhaps possible to reinitialize the node so that it connects to a new Master?
edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2011-11-11 06:27:38 -0500

In rospython it seems it's possible (if dangerous?) to do the following:

rospy.client._init_node_args = None
rospy.init_node( "node_name" )

I'm not sure if it's wise but it seems to work.

edit flag offensive delete link more


That is not a valid workaround.

Pablo Iñigo Blasco gravatar image Pablo Iñigo Blasco  ( 2020-02-14 12:16:59 -0500 )edit

answered 2011-11-11 06:06:11 -0500

bhaskara gravatar image

I always launch a master manually with roscore for this reason. IMO there's too much potential for weird inconsistencies, e.g., with parameter server values, to try reconnecting.

edit flag offensive delete link more


Probably the better option, but I'm curious none-the less to know if nodes can be made to recover from losing a Master/reattach to new Master
Asomerville gravatar image Asomerville  ( 2011-11-11 07:53:48 -0500 )edit

Question Tools


Asked: 2011-11-11 05:53:07 -0500

Seen: 650 times

Last updated: Nov 11 '11