ros2 / domain_bridge

Bridge communication across different ROS 2 domains.
Apache License 2.0
52 stars 12 forks source link

fix bidirectional bridge looping over the messages with fastdds #79

Open cyrilleberger opened 11 months ago

cyrilleberger commented 11 months ago

When using fastdds (default in humble), and using a bidirectional topic bridge, the same message keep been sent over and over. This is because the behavior of ignore_local_publications is different between fastdds and cyclonedds, this is was reported to rmw_fastrtps in https://github.com/ros2/rmw_fastrtps/issues/573. To fix this problem, I made a change in domain_bridge to make sure that the message we receive from a subscriber do not come from a publisher owned by the bridge. This fix the problem of sending the same message over and over.