Running ROS across multiple machines is failed
Hi All,
I am trying to run ROS across 2 machines, master is starting with out any issues when I tried to run listener getting below errors.
root@test:/opt/ros/indigo# rosrun rospy_tutorials listener.py
[rospack] Error: package ‘rospy_tutorials’ not found
find: ‘’: No such file or directory
I have followed below procedures.
System 1-
setting static IP-
ifconfig eth0 192.168.0.1 netmask 255.255.255.0
route add default gw 192.168.0.1 dev eth0
export ROS_IP=192.168.0.1
export ROS_HOSTNAME=192.168.0.1
roscore &
export ROS_MASTER_URI=http://192.168.0.1:11311/
rosrun rospy_tutorials listener.py
System-2
setting static IP-
ifconfig eth0 192.168.0.2 netmask 255.255.255.0
route add default gw 192.168.0.2 dev eth0
export ROS_IP=192.168.0.2
export ROS_HOSTNAME=192.168.0.2
export ROS_MASTER_URI=http://192.168.0.1:11311/
rosrun rospy_tutorials talker.py
Note: I could able to ping between system 1 & 2.
Kindly help us to debug this issue in my setup.
Kindly let me know if you need any more information,
Regards
Welcome! What's the issue here? The error message or a network problem? Being able to ping isn't sufficient. You need to make sure that you can communicate over all ports.
Also,
ROS_HOSTNAME
is for host names, not IP addresses. For an IP address useROS_IP
. http://wiki.ros.org/ROS/EnvironmentVa...export ROS_HOSTNAME=localhost $ export ROS_MASTER_URI=http://localhost:11311
roslaunch rospy_tutorials talker_listener.launch
with the above steps, it works fine ..
As you pointed out Looks like it's a network/setup issue. Since I am new to ROS finding difficult to figure it out
after adding this to env setup it's resolved now
export ROS_PACKAGE_PATH=/home/hjt/catkin_ws/src:/opt/ros/indigo/share:/opt/ros/indigo/stacks
Thanks for ur support,