ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Okay here we go:
To clarify, this is what I believe your setup is:
On the cellular thing: I really think you'll get less than one frame per second with this setup.
Anyway, here is how I would set this up:
sudo apt-get install openvpn
ca
cert
key
and dh
fields in server.conf
to match the keys you generated in step 2ca.crt
, your-clients-name.crt
, and your-clients-name.key
(note this should be done in a secure way, ie on a flash drive, not over the internet)sudo service openvpn restart
to have them both connect through the VPN tunnel.ping 10.8.0.1
, then on the server ping the robot with: ping 10.8.0.6
. If one of these fails, let me know and we'll debug it.From here I assume you can figure out the streaming to clients part. You could either re-encode the stream before sending it to clients, or just set your server up so that when a client connects to port 8080 the traffic is redirected through the OpenVPN tunnel to 10.8.0.6. I believe this is pretty simple, just like redirecting any other kind of traffic similar to a WiFi access point does port forwarding.
And that's my simple 14-step process for robot to client video streaming :) Good luck, let me know if (and when) you run into any difficulties.
-Tim
2 | No.2 Revision |
Okay here we go:
To clarify, this is what I believe your setup is:
On the cellular thing: I really think you'll get less than one frame per second with this setup.
Anyway, here is how I would set this up:
sudo apt-get install openvpn
ca
cert
key
and dh
fields in server.conf
to match the keys you generated in step 2
sudo apt-get install openvpnremote
my-server-1 ca.crt
, your-clients-name.crt
, and your-clients-name.key
(note this should be done in a secure way, ie on a flash drive, not over the internet)sudo service openvpn restart
to have them both connect through the VPN tunnel.ping 10.8.0.1
, then on the server ping the robot with: ping 10.8.0.6
. If one of these fails, let me know and we'll debug it.
sudo apt-get install ros-hydro-mjpeg-serverFrom here I assume you can figure out the streaming to clients part. You could either re-encode the stream before sending it to clients, or just set your server up so that when a client connects to port 8080 the traffic is redirected through the OpenVPN tunnel to 10.8.0.6. I believe this is pretty simple, just like redirecting any other kind of traffic similar to a WiFi access point does port forwarding.
And that's my simple 14-step process for robot to client video streaming :) Good luck, let me know if (and when) you run into any difficulties.
-Tim