New node registered with same name error

Hi,

I’m trying to connect two CORE2-ROS to a PC which is running the roscore.
I set up all the IP addresses in the bashrc files properly.
When I do /opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2, I hope it connects to the roscore on the master PC. After using rostopic list I can see that that works.

Now I am trying to do that with a second CORE2-ROS, but the first one disconnects. I get this message:

shutdown request: new node registered with same name

Is there a way to change the name of the serial nodes to prevent this from happening?

Hello Mike,

ROS system can handle only one node with given name.
When you start serial bridge with:

/opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2

It gets default name, thus will shutdown any node that is running with the same name.

To prevent that, you can bind another node name:

/opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2 __name:=serial_node_on_first_device

And on another CORE2-ROS:

/opt/husarion/tools/rpi-linux/ros-core2-client /dev/ttyCORE2 __name:=serial_node_on_second_device

You could bin any name you wish for nodes.

Regards,
Łukasz

Once again Lukasz, thanks a lot.

I hope we are not the coffeetalk dummies of Husarion by now :slight_smile: , after asking so many (dumb) questions.