fkie / multimaster_fkie

ROS stack with FKIE packages for multi-robot (discovering, synchronizing and management GUI)
BSD 3-Clause "New" or "Revised" License
267 stars 107 forks source link

Can two computers run two Gazebo and two RVIZ after running multimaster_fkie? #154

Closed 15993217652 closed 3 years ago

15993217652 commented 3 years ago

Can two computers run two Gazebo and two RVIZ after running multimaster_fkie?
Why is it that when one computer runs Gazebo and another runs Gazebo, it is killed

atiderko commented 3 years ago

Multimaster synchronizes several roscore's without changing the names of the nodes and topics. The advantage is that the launch files for a single system and multi-core system do not have to be changed. However, if two nodes with the same name are started in the system, these nodes will be terminated. This is ROS behaviour!

To prevent this, the same nodes must be started in different namespaces. Or you add these nodes to the master_sync ignore list.

15993217652 commented 3 years ago

Thank you very much for your reply. I will try again

15993217652 commented 3 years ago

Now, I can run two Gazebo on two computers, but I want to subscribe to topics for neglected nodes. Is that allowed

atiderko commented 3 years ago

if you put the gazebo in a different namespace, you can subscribe to topics. If they're on the ignore list, then not.

15993217652 commented 3 years ago

Thank you very much for your reply. Now I have understood everything

atiderko commented 3 years ago

you are welcome! I am sorry for the late reply