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

new node registered with same name- arduino

asked 2015-08-04 19:26:34 -0600

dmngu9 gravatar image

Hi, I have 2 arduino mega connected to 2 usb ports. When i rosserial one is forced to shut down because it says new node registered with same name. This i think because the node.initNode() in both files. In arduino , i cant specify the name of the subscriber node.

How can i overcome this problem

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-08-04 22:09:37 -0600

Did you try running each rosserial_python with a different __name argument? See here for a more detailed definition

rosrun rosserial_python /dev/ttyUSB0 __name:=node1

rosrun rosserial_python /dev/ttyUSB1 __name:=node2
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-08-04 19:26:34 -0600

Seen: 2,852 times

Last updated: Aug 04 '15