Unable to receive messages on ROS network
I am currently running a master node on my Jetson TK1(IP - 10.42.0.15) and a remote PC running ubuntu(IP - 10.42.0.1).
I have gone through all the setup shown in the setup and multiple machines. Also, I am able to ping into both of them and netcat results are perfect too.
I have also gone through ROS answers on setting up the /etc/hosts file. But, when I try to do the rostopic list
after a roscore
on tegra ,I just dont see anything.
my setup on tegra is:
export ROS_IP=10.42.0.15
export ROS_HOSTNAME=10.42.0.15
export ROS_MASTER_URI=http://10.42.0.15:11311/
Variables setup on PC are:
export ROS_IP=10.42.0.1
export ROS_HOSTNAME=10.42.0.1
export ROS_MASTER_URI=http://10.42.0.15:11311/
When you run roscore on the master, what is printed to the command line?
This could be
roscore
binding its socket to the wrong IP, good question @epsilonjon.Also: @kartikmadhira1: using
ROS_IP
andROS_HOSTNAME
at the same time is not recommended / necessary. I'd stick toROS_IP
if you are in fact not resolving hostnames.@epsilonjon , The ros master is started with the given IP name and I'm able to run rplidar node too.
@gvdhoorn tried with only ROS_IP, but without any help. messages aren't coming.
@kartikmadhira1 Are you running
rplidar
androstopic list
on the master or on the other machine?@epsilonjon
rplidar
on the master androstopic list
on PC.my comment wasn't meant as a "this will solve your problem" kind of comment, but more as a general remark. The semantics of the two variables are different. They shouldn't be used at the same time.