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

Revision history [back]

click to hide/show revision 1
initial version

I solved it myself. Should I delete this question?

It turned out to be a mismatched ROS_MASTER_URI. I found it just by trial and error. I wonder if there was a clue in th elog above that would have helped me.

I solved it myself. Should I delete this question?Let me describe the setup:

It turned out A turtlebot3 robot is running roscore on board + the rest of the basic ROS Stack. The robot has a domain name, say r1.brandeis.edu. On the robot,

  • ROS_MASTER_URI=http://r1.brandeis.edu:11311
  • ROS_HOSTNAME is set to r1.brandeis.edu.

A wifi connected laptop has

  • ROS_MASTER_URI=http://r1.brandeis.edu:11311
  • ROS_IP=ip-address-of-laptop

This set up works. The problem I had which seemed to be causing the failure was caused by not following that setup.

I remain confused about the interaction between ROS_IP and ROS_HOSTNAME. For example, if on the laptop I setup ROS_HOSTNAME=localhost, this does not work. Also if I have both ROS_HOSTNAME and ROS_IP this causes problems. So I believe I am close to having a mismatched ROS_MASTER_URI. I found it just by trial and error. I wonder if robust configuration but there was a clue in th elog above that would have helped are some interactions which are confusing to me.