ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ROS2 Humble DDS not working on two different machine

asked 2023-06-07 23:54:45 -0600

JoshC gravatar image

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?

edit retag flag offensive close merge delete

Comments

I am experiencing this problem with Iron as well. I cannot get the network DDS or the Fast DDS to work.

BlackManta gravatar image BlackManta  ( 2023-06-09 09:49:48 -0600 )edit

Maybe something isn't working with the new discovery option configuration? Just something to check.

gvdhoorn gravatar image gvdhoorn  ( 2023-06-09 09:55:35 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-30 09:21:32 -0600

BlackManta gravatar image

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

edit flag offensive delete link more

Comments

I would recommend the normal DDS if you are starting out

for Humble, wouldn't FastDDS be the "normal DDS"?

gvdhoorn gravatar image gvdhoorn  ( 2023-06-30 09:51:19 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2023-06-07 23:54:45 -0600

Seen: 645 times

Last updated: Jun 30 '23