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

VPN use case for ROS_IP, ROS_MASTER_URI and ROS_HOSTNAME

asked 2020-09-14 11:17:37 -0600

pitosalas gravatar image

I am not sure whether being over a VPN is relevant but here's my scenario:

  1. Robot running ROS Melodic, publishing /odom and subscribing to /cmd_vel

  2. Cloud based docker environment running ROS Melodic

  3. Both the robot and the cloud environment use tail scale to create a vpn so that they can talk to each other over tcp/ip. Call robot's IP vpn_robot and cloud environment IP vpn_cloud

  4. Able to ping in bother directions between vpn_robot and vpn_cloud

  5. Issuing cmd_vel using rostopic pub from robot to robot works fine

  6. Viewing odom on cloud environment using rostopic echo works fine

  7. roswtf gives no errors on both sides

  8. on Robot, ROS_IP and ROS_MASTER_URI both reference vpn_robot

  9. In cloud environment, ROS_IP references vpn_cloud and ROS_MASTER_URI references vpn_robot

  10. Roscore is running on the robot

But...

Sending cmd_vel from cloud environment to robot using rostopic pub DOES NOT WORK! I tried defining ROS_HOSTNAME equal to ROS_IP and that made no difference.

I am looking for suggestions on how to further troubleshoot this. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-12-29 06:48:38 -0600

pitosalas gravatar image

I can say that this specific problem (for me) seems to have been caused by a firewall.

edit flag offensive delete link more

Question Tools

3 followers

Stats

Asked: 2020-09-14 11:17:37 -0600

Seen: 221 times

Last updated: Dec 29 '20