Code that runs on the robot itself. Creates a Racecar object with camera for it to be exploited by this code.
- Jetson Nano AI Kit 4GB - Jetpack 4.5.1
- Python 3.6
- Git
If not done already, install the needed python dependencies on the robot. You can do that by running the following command:
pip install -r requirements.txtNote
This repository should be on the Jetson Nano directly to help with file transfer and development.
-
First, you need to replace the
WebScoketserver's IP in theweb_socket_client.pyandkpi_plotter_ws.pyfiles with the IP on which your server runs.
Then, run theWebSocketsolution code, simply run this command:python3 web_socket_client.py
-
To run the
TCP Tailscalesolution code, simply run this command:python3 direct_tcp.py
Note
After starting the script, it might take a while for the camera and controls to fully initialize. Please be patient as this can take up to 2 minutes.
There should be a message in the logs letting you know that the script is ready when its done initializing.
The present code has telemetry that is taken during runtime to evaluate the performance of the different solutions we have.
After each run, it will generate .csv files with all the data used to create plots (useful for modifying data to remove outliers).
It will also create 2 .png files with 3 plots each containing different data sets.
Made with care by @Funnyadd, @ImprovUser, @cjayneb and @RaphaelCamara ❤️