Open awesomebytes opened 2 years ago
I see that if I clone the repository and open index.html I can connect (green dot), however I haven't been able to visualize any data (tried some full-fledged complex Rviz configs and also a simple one with just a pointcloud and one with just an Image).
Known issue, sadly requires you to either load the site without SSL OR run your bridge with an SSL cert.
https://mobile.twitter.com/nullagent/status/1452407008636784649
Will keep the issue open as there may be a CORS setting I haven't found yet. But generally is looking like browsers no longer provide a way for the app to avoid the error when loaded in an SSL context.
Ok found a great writeup on SSL workaround. @awesomebytes see below.
https://www.damirscorner.com/blog/posts/20210528-AllowingInsecureWebsocketConnections.html
So for the purposes of this project the options appear to be:
Hello,
Thanks for sharing this work! I was gonna give it a quick try and, for now, I'm unable to make it work.
I tried:
roslaunch rosbridge_server rosbridge_websocket.launch
in ROS melodic).ws://0.0.0.0:9090
/opt/ros/melodic/share/rviz/default.rviz
rviz fileI got a red dot saying 'Error' on the top right, and the chromium developer console shows the following error: In text:
On firefox the error is different, but it's probably the same issue:
error DOMException: The operation is insecure.