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

Topics not visible on two machines

asked 2019-03-29 04:08:37 -0600

EdwardNur gravatar image

updated 2019-03-29 04:37:06 -0600

I am running ROS master on my PC and robot on embedded machine that connects to it. Recently, I have changed the embedded machine (before that, everything worked) and suddenly I cannot see remote topics on both machines (only local). My host PC runs Melodic and Embedded runs Kinetic but it should not matter as messages are the same.

From my host PC, I was able to SSH into my embedded machine and ping data. Also, I have added both machines in /etc/hosts, I have set the ROS_IP on both machines and I set the ROS_MASTER_URI on both machines with the host PC IP Address.

What could be wrong?

EDIT:

I also checked the netcat from this page: http://wiki.ros.org/ROS/NetworkSetup

I can confirm two machines can communicate

edit retag flag offensive close merge delete

Comments

What is the value of ROS_HOSTAME on both machine ?

Delb gravatar image Delb  ( 2019-03-29 05:27:41 -0600 )edit

@Delb I did not echo it as I have ROS_IP. I found an answer below

EdwardNur gravatar image EdwardNur  ( 2019-03-29 07:01:04 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-03-29 07:01:35 -0600

EdwardNur gravatar image

That is quite a unique issue I believe. I have configured DNS so that it redirects to a different DHCP and it worked.

edit flag offensive delete link more

Comments

1

If you have DNS with auto-updates to a DHCP server, it would be better to use ROS_HOSTNAME, as that would be automatically resolved to the correct IP.

If you use ROS_IP with such a setup, you run the risk of ROS_IP containing an old IP, resulting in the problem you reported in your OP.

gvdhoorn gravatar image gvdhoorn  ( 2019-03-29 07:45:31 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2019-03-29 04:08:37 -0600

Seen: 283 times

Last updated: Mar 29 '19