Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

And they all three had localhost as their ros_name. In other words their rosname was not set to a specific IP address.

I don't recognise the ros_name you mention, but if you're referring to either ROS_IP or ROS_HOSTNAME, then localhost is not a good value for either in a multi-machine setup.

At the very least, set ROS_IP on each computer to the IP address that they have been configured with. Without that, topics will show up, but none of your nodes will be able to connect to nodes on other machines (localhost always points to the local machine, for every machine, so that is a problem).

Also, when I used the teleop utility the robot didn’t move even though the cmd_vels were being published.

This is expected in a multi-machine setup which is misconfigured.

And they all three had localhost as their ros_name. In other words their rosname was not set to a specific IP address.

I don't recognise the ros_name you mention, but if you're referring to either ROS_IP or ROS_HOSTNAME, then localhost is not a good value for either in a multi-machine setup.

At the very least, set ROS_IP on each computer to the IP address that they have been configured with. Without that, topics will show up, but none of your nodes will be able to connect to nodes on other machines (localhost always points to the local machine, for every machine, so that is a problem).

Also, when I used the teleop utility the robot didn’t move even though the cmd_vels were being published.

This is expected in a multi-machine setup which is misconfigured.


Edit: please see wiki/ROS/NetworkSetup and especially wiki/ROS/Tutorials/MultipleMachines for more information.

Note that those two pages work with hostnames intead of IP addresses. That will require a working DNS server or manually adding the correct information to /etc/hosts on all computers.