ROS2 topic command doesn't visualize another machine topics

asked 2023-01-18 02:18:30 -0500

omer_1903 gravatar image

updated 2023-01-18 02:23:59 -0500

I can't see the topics running on other computers. I can only see the topics running on my computer. Topics running on my own computer cannot be seen on other computers. For example: I run "ros2 run demo_nodes_cpp talker" and while my own computer can see the /chatter topic, another computer cannot see this topic.

When I type ros2 multicast send on my own computer and ros2 receive multicast on another computer, the other computer's output is: " Received from <ip_address:port> "hello world". But when I type multicast send on the other computer and receive multicast on my own computer, I get "waiting for UDP multicast datagram .." output. What is the purpose of this situation?

ROS2 distribution = Humble

ROS_LOCALHOST_ONLY=0

ROS_PYTHON_VERSION=3

Ubuntu Version = 22.04

edit retag flag offensive close merge delete

Comments

Do you use virtual machines? Can you ping both machines from both side? Did you set the ROS_DOMAIN_ID in a .bashrc file maybe and you forgot? Give us more informations

Andromeda gravatar image Andromeda  ( 2023-01-21 12:27:27 -0500 )edit

I have the same issue, did you tend to solve this ?

Ani gravatar image Ani  ( 2023-07-27 10:19:25 -0500 )edit