-
Notifications
You must be signed in to change notification settings - Fork 3
Description
Context
Right now the website connection is ws and not wss, meaning that it is not compliant with the browser standard as it blocks non secured websockets automatically. It works locally because it makes an exception for locally websockets, but as we want the deployed https://www.trickfirerobotics.org/mission-control/ to be able to connect with the rover.
How to implement
Look at the conversation below but basically, in src/viator_launch/launch/robot.launch.py for rosbridge_server, update the launch arguments like this https://github.com/TrickfireRobotics/urc-2023/pull/74/files#diff-f2c5990233054c4089185587ffbfa56fa714640b2162fac78126d9b6e4a3a943R35 .
Conversation about this:
https://discord.com/channels/541737196915261462/1221527260113404024/1311619062043775037
i think rosbridge has some way to do it relatively easily
id like to avoid setting up nginx for something so simple
unfortunately the ros forums seem to be acting up so i cant check rn
oh
https://web.archive.org/web/20230927052036/https://answers.ros.org/question/198647/rosbridge-websocket-ssl-connection-aborted/
rosbridge websocket ssl connection aborted - ROS Answers: Open Sour...
Hi all, I can't establish a wss-connection between Firefox 33.1 and roslaunch rosbridge_server rosbridge_websocket.launch. I always get an Alert(21) in Wireshark. My Setup: SERVER 192.168.2.199: Ubuntu 12.04 LTS + Hydro + latest rosbridge CLIENT 192.168.2.33: Windows 7 U. + Firefox 33.1 + roslib R6 My HTML: function init() { var ros = ne...
so you can just
ok thats one way to do it ig
wait that appears to be out of date
huh
how interesting
Kyler L — 11/27/2024 10:16 PM
the library theyre using says this
When using a secure websocket connection (wss://) with a self-signed certificate, the connection from a browser may fail because it wants to show the “accept this certificate” dialog but has nowhere to show it. You must first visit a regular HTML page using the same certificate to accept it before the websocket connection will succeed.
(https://www.tornadoweb.org/en/stable/websocket.html)
thats stupid
ok but we can specify the cert files without nginx: https://github.com/RobotWebTools/rosbridge_suite/blob/1de68964d2cb0687284760ba45979ec2f584a5b9/rosbridge_server/scripts/rosbridge_websocket.py#L102
these parameters can be set via the launch file: https://docs.ros.org/en/jazzy/Tutorials/Beginner-Client-Libraries/Using-Parameters-In-A-Class-Python.html#add-an-entry-point
wait no
also found this while looking: https://github.com/RobotWebTools/ros3djs
Kyler L — 11/27/2024 10:23 PM
they appear to be defined here: https://github.com/RobotWebTools/rosbridge_suite/blob/1de68964d2cb0687284760ba45979ec2f584a5b9/rosbridge_server/launch/rosbridge_websocket_launch.xml
not sure how to change those vars, im sure someone does tho
oh just like this: https://docs.ros.org/en/jazzy/How-To-Guides/Launch-file-different-formats.html#setting-arguments
ok you guys shld be able to setup websockets tls pretty easily
They can also be set in the config like this: https://github.com/TrickfireRobotics/urc-2023/pull/74/files#diff-f2c5990233054c4089185587ffbfa56fa714640b2162fac78126d9b6e4a3a943R35
GitHub
Enable use_compression for rosbridge_server by uellenberg · Pull Re...
This also merges rosbridge_server into the main launch config. Please let me know if this is a problem, but I believe they're executed as separate processes anyway so shouldn't caus...
Enable use_compression for rosbridge_server by uellenberg · Pull Re...