Hi there,
i was trying out the following tutorial:
[http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality](http://wiki.ros.org/roslibjs/Tutorials/BasicRosFunctionality)
`roslaunch rosbridge_server rosbridge_websocket.launch` was started with now errors
I have nginx as webserver and everything works fine from within the local network, after changing
var ros = new ROSLIB.Ros({
url : 'ws://localhost:9090'});
to my local IP in the corresponding html-file from the tutorial:
var ros = new ROSLIB.Ros({
url : 'ws://192.168.2.114:9090'});
That way everything is fine and working from within the local network. The html from the example is working, its listening to topic /listener and publishing to /cmd_vel.
So I changed the IP in the html-file to my WAN IP (the one provided from my Provider) and tried to reach the html-file over WAN-Adress from outside the local network instead. But that doesn't work with the html-file from the tutorial. (The Webserver is still reachable, so WAN IP must be correct).
I allready tryed to forward port 9090 within my router settings, like i did for port 80 from the webserver. With no success.
I also know, that my router doesn't support NAT-Loopback and so i'm connecting to the webserver from another network.
Does anybody know how i can connect to ROS with that tutorial from external network via internet or what has to be changed that it's working?
Thanks
Fabian
↧