Ask Your Question
0

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
0

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 serial_node.py /dev/ttyUSB0 __name:=node1

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

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

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

Seen: 1,360 times

Last updated: Aug 04 '15