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

Unable to subscribe to a topic on a different computer

asked 2022-10-13 10:53:43 -0500

rolando gravatar image

updated 2022-10-17 09:24:11 -0500

Mike Scheutzow gravatar image

My Ros sytem has 3 computers. One is the server and the other two are robots. All computers have static IPs assigned and are inside same network. I have a script on the server side running to publish a String message on the topic /gripper . I am able to echo the messages on that topic on my server. On my two robot i can list the topic with rostopic list but when i do rostopic echo /gripper nothing is is logged. If i publish a message on the topic inside the robot terminal, i can see the message on both machines (server and robots). Why i cannot see the messages published on the ROSCORE machines on my other two robots.

On the Server side i have:

  • X86-64 system architecture
  • ROS Noetic installed on a Ubuntu 20.04 LTS
  • export ROS_IP=192.168.1.150 (on .bashrc)
  • export ROS_MASTER_URI=http://192.168.1.150:11311 (on .bashrc)

On Robot 1 i have:

  • aarch64 system archtecture (Raspberry PI4)
  • ROS melodic installed on a Ubuntu 18.04
  • export ROS_IP=192.168.1.170 (on .bashrc)
  • export ROS_MASTER_URI=http://192.168.1.150:11311 (on .bashrc)

On Robot 2 i have:

  • aarch64 system archtecture (Raspberry PI4)
  • ROS melodic installed on a Ubuntu 18.04
  • export ROS_IP=192.168.1.180 (on .bashrc)
  • export ROS_MASTER_URI=http://192.168.1.150:11311 (on .bashrc)
edit retag flag offensive close merge delete

Comments

Please edit your description and provide a url to show us the tutorial you followed to set up this multi-host network. You edit using the "edit" button near the end of the description.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2022-10-15 08:55:54 -0500 )edit

Have you tried to look at the set-up in RQT_Graph?. Often I find, it will clarify if something is "not published" or simply not seen / recognized. rosrun rqt_graph rqt_graph Can you post image of the above

PointCloud gravatar image PointCloud  ( 2022-10-16 03:43:59 -0500 )edit

no tutorial has been used, the rqt-graph is available on the url link. https://drive.google.com/file/d/1rkjr...

rolando gravatar image rolando  ( 2022-10-17 03:20:55 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-10-17 09:16:23 -0500

Mike Scheutzow gravatar image

The most common problem is that the ufw firewall is blocking incoming connections. You need to allow connections between all of your ROS host machines.

The second most common problem is that the time-of-day clocks are not synchronized across all the ROS host machines. You need to use an NTP client service.

Also be aware that ROS does not promise interoperability between nodes running different ROS releases (e.g. melodic vs noetic.) These two happen to be highly-compatible, but there are some features which will not work.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-10-13 10:53:43 -0500

Seen: 50 times

Last updated: Oct 17 '22