ROS2 Humble DDS not working on two different machine
I have two machines both install ROS Humble,
A: Ubuntu 192.168.55.100 B: Jetson Xavier 192.168.55.1
When I try to run talker-listener demo on these two machine. It's not working. Hower both of them can ping each other with IP address. How can troubleshoot this issue?
Asked by JoshC on 2023-06-07 23:54:45 UTC
Answers
I have been battling the DDS / Fast DDS for two months now.
The fast solution is to make sure that both machines are on the same LAN.
(I would double check the .1 address, that is usually a router address.)
(If you are using virtual box or VM make sure you are using NAT Network).
Try using "ros2 multicast receive" one one, and "ros2 multicast send" on the other. (If the receiving gets the message it should work.)
Remove ALL variables that deal with Fast RTPS. Make sure you set a consistent ROS_DOMAIN_ID on both machines. For me, I had to use a non-zero ROS_DOMAIN_ID, but there may have been another problem. If you are modifying your bashrc, save it and restart the terminal. ros2 daemon stop ros2 daemon start You should be good to go, there can be a 2-3 second lag when a node first spins up.
Example of my .bashrc export ROS_DOMAIN_ID=44 source /opt/ros/iron/setup.bash ... Note if you have any fast DDSsetting it will disable the normal DDS, this was my problem. In order to use fast dds you must have the server declared, and if you want introspection you have to specify the xml file to configure fast DDS. The biggest problem with fast DDS is other terminals must have it configured for local nodes to interact with the ROS system. I would recommend the normal DDS if you are starting out.
Hope that helps, Cheers, BM
Asked by BlackManta on 2023-06-30 09:21:32 UTC
Comments
I would recommend the normal DDS if you are starting out
for Humble, wouldn't FastDDS be the "normal DDS"?
Asked by gvdhoorn on 2023-06-30 09:51:19 UTC
Comments
I am experiencing this problem with Iron as well. I cannot get the network DDS or the Fast DDS to work.
Asked by BlackManta on 2023-06-09 09:49:48 UTC
Maybe something isn't working with the new discovery option configuration? Just something to check.
Asked by gvdhoorn on 2023-06-09 09:55:35 UTC