rmw_fastrtps: Cannot communicate between nodes when only loopback is up
Bug report
Required Info:
- Operating System:
- Ubuntu 18.04, ARM64 (Rock64 board)
- Installation type:
- Source
- Version or commit hash:
- master
- DDS implementation:
- Fast-RTPS and Opensplice
- Client library (if applicable):
- rclcpp
Steps to reproduce issue
- Compile latest ros2 from master:
colcon build --event-handlers console_cohesion+ - Source the workspace:
source install/setup.bash - Take down any active network interfaces, so that only loopback is running.
- Run
ros2 run demo_nodes_cpp talkerin one terminal. - Run
ros2 run demo_nodes_cpp listenerin another terminal
Expected behavior
The talker and listener can communicate over localhost.
Actual behavior
The talker and listener cannot communicate.
Additional information
When testing this with Opensplice, I saw an error message to the effect that there were no Multicast interfaces available (I can get the full message later). This leads me to expect that DDS/RTPS isn’t doing any discovery because there is no multicast available. However, it still feels like communication in localhost should work in this scenario, hence the bug report.
Feature request
Feature description
Implementation considerations
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 18 (17 by maintainers)
I was receiving the same error, but found out that I had to enable multicast on
lobecause it’s not on by default (from: https://stackoverflow.com/a/30982079)Example output:
I went ahead and added https://github.com/ros2/ros2/wiki/Tutorials#troubleshooting to the tutorials page. I am happy to move the section to another better suited place. Let me know.
duplicate of ros2/ros2#552 ?