StarlingUAS / ProjectStarling

BRL Flight Arena Infrastructure 2.0
Other
16 stars 3 forks source link

Stop and Go button UI with ROS2 Topics. #17

Closed mhl787156 closed 3 years ago

mhl787156 commented 3 years ago

This PR enables simple web page control of ros based missions. The website has a large go and stop button with user feedback on clicking. These have been verified to broadcast a std_msgs/String to either /mission_start or /emergency_stop. When run using docker-compose and docker run the webpage is available at localhost:3000/html/main.html When run as part of kubernetes by applying kubernetes.yaml, the webpage is available at localhost:30000/html/main.html (note the extra 0). Note that when running locally using docker, port 9090 is required for ros web bridge traffic. Due to kubernetes port allowances, this has been remapped to 30001. The webpage attempts to always first connect to localhost:9090 but on failure will assume it may be running in kubernetes and will attempt to connect to localhost:30001.

mhl787156 commented 3 years ago

This is what the UI looks like: image

mhl787156 commented 3 years ago

Yeah thats fair, easiest way to sort that is just to grab bootstrap as offline library. But this is likely to be updated not too far in the future though.