gazebosim / ros_gz

Integration between ROS (1 and 2) and Gazebo simulation
https://gazebosim.org
Apache License 2.0
241 stars 137 forks source link

Bridging same topic via multiple nodes leads to a conflict #591

Open k12onoss opened 1 month ago

k12onoss commented 1 month ago

Environment

Description

So, I ran into this issue while working with multi-robot simulation. I am using the cloned_multi_tb3_simulation_launch.py from the nav2 package, which launches a separate bridge for each instance of the tb3 robot that you spawn. As a result, the /clock topic is bridged multiple times. This leads to the following issues:

Steps to reproduce

  1. Launch the cloned_multi_tb3_simulation_launch.py file.
azeey commented 1 month ago

I'm not sure what the fix should be here. It seems to me the right thing to do is to only bridge global topics like /clock only once.