"new node registered with same name" with conflicting Slave URI

asked 2021-07-30 00:34:40 -0500

scottnothing gravatar image

updated 2021-07-30 00:40:31 -0500

I am seeing the "new node registered with same name" as if I had named my nodes the same (or launched the same node). In fact I am seeing that the Slave URI assigned to the new process is that same as an existing node. Going through the log files I see this

Process that crashed (process2):

[rospy.client][INFO] 2021-07-29 12:27:55,613: init_node, name[/process2], pid[9673]
[xmlrpc][INFO] 2021-07-29 12:27:55,623: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2021-07-29 12:27:55,623: Started XML-RPC server [http://rosuser:42419/]
[rospy.impl.masterslave][INFO] 2021-07-29 12:27:55,623: _ready: http://rosuser:42419/
[rospy.init][INFO] 2021-07-29 12:27:55,623: ROS Slave URI: [http://rosuser:42419/]
[xmlrpc][INFO] 2021-07-29 12:27:55,630: xml rpc node: starting XML-RPC server
[rospy.registration][INFO] 2021-07-29 12:27:55,630: Registering with master node http://localhost:11311
[rospy.init][INFO] 2021-07-29 12:27:55,724: registered with master
[rospy.rosout][INFO] 2021-07-29 12:27:55,724: initializing /rosout core topic
[rospy.rosout][INFO] 2021-07-29 12:27:55,733: connected to core topic /rosout
[rospy.simtime][INFO] 2021-07-29 12:27:55,734: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic
[rospy.impl.masterslave][INFO] 2021-07-29 12:28:01,932: external shutdown request from [/master]: [/process1] Reason: new node registered with same name
[rospy.core][INFO] 2021-07-29 12:28:01,932: signal_shutdown [external shutdown request from [/master]: [[/process1] Reason: new node registered with same name]]
[rosout][INFO] 2021-07-29 12:28:01,932: Node exiting cleanly
[rospy.core][INFO] 2021-07-29 12:28:01,980: signal_shutdown [atexit]

Process that it references (process1):

[rospy.client][INFO] 2021-07-29 12:23:59,888: init_node, name[/process1], pid[916]
[xmlrpc][INFO] 2021-07-29 12:23:59,894: XML-RPC server binding to 0.0.0.0:0
[rospy.init][INFO] 2021-07-29 12:23:59,895: ROS Slave URI: [http://rosuser:42419/]
[xmlrpc][INFO] 2021-07-29 12:23:59,895: Started XML-RPC server [http://rosuser:42419/]
[rospy.impl.masterslave][INFO] 2021-07-29 12:23:59,895: _ready: http://rosuser:42419/
[xmlrpc][INFO] 2021-07-29 12:23:59,902: xml rpc node: starting XML-RPC server
[rospy.registration][INFO] 2021-07-29 12:23:59,903: Registering with master node http://localhost:11311
[rospy.init][INFO] 2021-07-29 12:23:59,995: registered with master
[rospy.rosout][INFO] 2021-07-29 12:23:59,995: initializing /rosout core topic
[rospy.rosout][INFO] 2021-07-29 12:24:00,014: connected to core topic /rosout
[rospy.simtime][INFO] 2021-07-29 12:24:00,015: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic
edit retag flag offensive close merge delete

Comments

It might be easier for others to help you if you could show the .launch file(s).

gvdhoorn gravatar image gvdhoorn  ( 2021-08-01 02:43:15 -0500 )edit

Is it possible you restarted the ros master after starting /process1 ? That might lead to weird errors like reuse of a port number.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-08-02 15:44:43 -0500 )edit