Ask Your Question
0

rosbridge online

asked 2017-09-06 01:27:15 -0600

craigstar gravatar image

Background:
I am currently working on a project that wants to remotely receive video stream and send control commands to my ROS robot. I have it working perfectly in localhost by using rosbridge. It serves a web page on localhost:8181 that has video stream and a control panel.

Working ports on localhost:
Rosbridge port on 9090 (a bridge between ROS and JS web app)
mjpeg port on 8080 (for video stream)
web app port on 8181

My solution:
Should I use a server that has public IP to listen and send packages between control web app and ROS robot? I am thinking to forward my localhost ports to public server or use websocket to bind two ports.

No sure what to do. can anybody give some advises?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2017-09-06 01:31:12 -0600

gvdhoorn gravatar image

I am thinking to forward my localhost ports [..]

are you referring to NAT here, or some other way of 'forwarding'?

In any case: yes, you'll have to somehow open those ports on a routable IP. Whether that is done directly (ie: by giving your ROS machine a routable IP or by running the rosbridge nodes on a machine with a routable IP) or indirectly (ie: by using port forwarding in case of a NAT) should make no difference.

edit flag offensive delete link more

Comments

Note that this is not strictly a ROS problem, but a general networking setup task.

I'm not saying this because we don't want to help you, but you'll find much more on the general internet about this topic then limiting your search to anything ROS related.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-06 01:32:27 -0600 )edit

Hi, thank you for answering. when I started learning rosbridge, I thought rosbridge have built in API for serving online.(I think there are considerable needs). However, it works only in LAN.

running rosbridge online is a good idea, but again, how do I get topics/messages from robot. any examples?

craigstar gravatar image craigstar  ( 2017-09-06 01:49:38 -0600 )edit

However, it works only in LAN.

I'm rather sure that is not correct. See robotwebtools/demos fi: those are using rosbridge as well.

Furthermore, I've used rosbridge in a nr of "internet applications" (ie: where the consumer is not on the local net).

gvdhoorn gravatar image gvdhoorn  ( 2017-09-06 01:55:38 -0600 )edit
1

OK, I've got it working now. I used ssh -R tunnelling and it works pretty well. Thank you all the same

craigstar gravatar image craigstar  ( 2017-09-06 09:23:11 -0600 )edit

I'm not sure I completely understand your last comment. The robotwebtools demos show that if you run your rosbridge nodes on a publically accessible (or routable) IP, it can be used 'over the internet'. I'm not entirely sure I understand why you'd need 'ssh -R tunneling'.

gvdhoorn gravatar image gvdhoorn  ( 2017-09-06 14:10:09 -0600 )edit
0

answered 2019-04-11 16:35:56 -0600

gloriousone gravatar image

OK, I've got it working now. I used ssh -R tunnelling and it works pretty well. Thank you all the same

Same worked for me. To add to your solution, I used serveo.net to for reverse tunneling and it worked like a charm.

Thank you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-09-06 01:26:03 -0600

Seen: 1,210 times

Last updated: Sep 06 '17