Ask Your Question
2

Possible to communicate with new master without process restart?

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

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

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
0

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

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
4

answered 2011-11-11 06:06:11 -0600

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

Comments

1
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 imageAsomerville ( 2011-11-11 07:53:48 -0600 )edit

Your Answer

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

Add Answer

Question Tools

Stats

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

Seen: 411 times

Last updated: Nov 11 '11