0
$\begingroup$

I am trying to set up a simple and listener talker across two machines connected on the same wifi network. Machine A has the 10.42.0.89 address and is running the roscore and another node that publishes messages on a topic.

$ printenv | grep ROS
ROS_IP=10.42.0.89
ROS_MASTER_URI=http://10.42.0.89:11311

The other Machine B has the ROS_MASTER_URI set to match the one of machine A

$ printenv | grep ROS
ROS_MASTER_URI=http://10.42.0.89:11311

Machine B can get the list of available topics and running nodes correctly

$ rostopic list
/pose/estimate

But can't print out messages in that topic using rostopic echo /pose/estimate.

Do you have any advice?

$\endgroup$
1
$\begingroup$

I had this problem and I solved my problem by adding both machines' hostname to /etc/hosts. refer to https://husarion.com/tutorials/ros-tutorials/5-running-ros-on-multiple-machines/

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.