(Utility Robot) Code for the host computer that takes in controller input and sends it over UDP to the Jetson Nano.
- Read controller input from a host computer using Pygame.
- Send controller input data over UDP to a specified IP address and port.
- Clone the repository:
git clone https://github.com/uofrobotics/Host2Jetson.git
- Setup virtual environment
python -m venv venv
-
Start virtual environment
-
Install the required dependencies:
pip install -r requirements.txt
- Create .env file with
JETSON_IP
andJETSON_PORT
-
Connect your controller input device (needs atleast 2 axes) to the host computer.
-
Run
udp_send.py
python3 udp_send.py