communicate between foxy and dashing

asked 2020-07-27 04:37:01 -0500

PCWL gravatar image

HI everyone
Recently I am trying to communicate between foxy and dashing on different devices.
I have two computers, their configuration is as follows:

1: Ubuntu18.04+ROS2 dashing;
2: Ubuntu20.04+ROS2 foxy.

Each of them works very well.

When I connect them to the same LAN, and export ROS_DOMAIN_ID. I encountered some problems:

(1) When I try to run listener ros2 run demo_node_cpp listener on pc 1, Run talker ros2 run demo_node_cpp talker on pc 2, they can communicate normally;

(2) When I try to run talker ros2 run demo_node_cpp talker on pc 1, Run listener ros2 run demo_node_cpp listener on pc 2, they cannot communicate normally.
Can someone help me?

edit retag flag offensive close merge delete

Comments

I'm having the exact same issue with the same setup (but using VMs instead with a bridged adapter). I tried with eloquent (Ubuntu 18.04) and it works fine, the problem stated in point no. 2 only appears for dashing.

Additional note: When running the talker node on Ubuntu18.04+ROS dashing: --> on Ubuntu20.04+Foxy, the "/chatter" topic appears when I run "ros2 topic list". But no output with "ros2 topic echo /chatter"

renarded gravatar image renarded  ( 2020-08-19 03:17:29 -0500 )edit

Did you guys manage to solve this issue? I might need to implement something similar for a project I'm working on and I want to know if it is possible to do this.

guillermoherreraf gravatar image guillermoherreraf  ( 2021-02-10 02:08:07 -0500 )edit

It seems that Ros is not guaranteed to work between distributions. Often it does but apparently not in this case: https://github.com/ros2/ros2/issues/990

stevman gravatar image stevman  ( 2021-05-12 13:20:09 -0500 )edit