The Remote Controller GUI is design for controlling the robot. I'm new to PyQt5, so it's
It's currently has two main functions:
- RTMP video streaming.
- Send keypress events to control the robot through HTTP.
The Remote Controller requires OpenCV
to deal with streaming video, PyQt5
to build the GUI and requests
to send events to the robot. It's build in Python 3.8.4 64 bits
You can run the following instruction in the CMD or PowerShell to install them:
pip install -r requirements.txt
As you install all packages, just run GUI.py
. You can press F11
to enter full-screen mode. I will enlarge the size of labels in the future version.
- RTMP server URL: URL to connect to the streaming video.
- Terrain data source: URL to connect to the Lidar video.
- Backend server: URL to send instructions to the robot.
For hexapod
, you should have the input text:
- RTMP Server URL: rtmp://pi-hexapod/live
- Backend Server: http://pi-hexapod:5000
You have to connect to the robot, or the following keypress won't have any response.
Keyboard Instructions | Function |
---|---|
Ctrl + Q | Quit the GUI |
Upwards | Go Forward |
Downwards | Go Backward |
Leftwards | Go Leftwards |
Rightwards | Go Rightwards |
W | Stretch |
S | Shrink |