Proof of concept alternative web interface with low latency
This is a proof of concept for an alternative web interface that uses a WebSocket for communication with the ROS master.
Because this approach avoids making HTTP requests to PHP scripts, which then call Bash scripts, which then call ROS commands, which in turn have to connect to the ROS master every time, it has a lot less latency.
To make this work with the setup from this semester's P&S, only the package mentioned above would have to be installed on the Raspberry Pi. (Obviously the changes would have to be pulled and installed via the web interface too.)
What I implemented here is just a proof of concept (i.e. not as beautiful as the current web interface) but it was quite useful during the hands-on sessions of the P&S.
I made this totally backward compatible such that the current setup will still work as always.