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

Talker/Listener over SSH

asked 2020-04-13 05:54:15 -0500

anonymous user

Anonymous

updated 2020-04-13 06:10:38 -0500

Hello! I was wondering if it's possible to run the talker/listener examples with one of the machines being accessed by ssh. Both my machines have ROS Eloquent installed and I would like to have my local machine A talking with the remote machine B, which I have access through ssh. I am using a VPN so that both machines are under the same network. So far, I haven't been able to do this and so I would like to know if it's even possible.

Thank you

edit retag flag offensive close merge delete

Comments

I am using a VPN so that both machines are under the same IP

You mean "in the same network", correct? Two machines with the same IP would not be able to communicate.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-13 06:07:15 -0500 )edit

yes, sorry. Already edited my question.

anonymous userAnonymous ( 2020-04-13 06:11:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-04-13 07:02:21 -0500

hashirzahir gravatar image

This is a really interesting question, and I personally have not done this myself. However, the ROS wiki on Remote Machines claims that it possible, with a few caveats.

  1. Your ISP (internet service provider) allows for port forwarding.
  2. The devices communicate with each other via Public IPs, which may change dynamically.
  3. It has a lot of network configuration and setup outside of ROS, and the wiki link provided above tries to explain some of the problems faced.

Hope this helps.

edit flag offensive delete link more

Comments

This helps yes. It seems super complicated but possible. Thank you very much!

anonymous userAnonymous ( 2020-04-13 07:19:20 -0500 )edit

If you're using a VPN, port forwarding should not be needed.

@PedroACaldeira: you will have to make sure your VPN supports forwarding/routing UDP traffic though.

gvdhoorn gravatar image gvdhoorn  ( 2020-04-13 07:33:49 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-04-13 05:54:15 -0500

Seen: 397 times

Last updated: Apr 13 '20