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

new node registered with same name- arduino

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

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
2

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

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

rosrun rosserial_python serial_node.py /dev/ttyUSB0 __name:=node1

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

Question Tools

1 follower

Stats

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

Seen: 2,872 times

Last updated: Aug 04 '15