Controls the robot using websockets rather than http requests to reduce latency
Written by: Larry Zhao
(This is run on your computer)
- Install Node.js and npm
- Open the ResearchDashboard2 folder in your Terminal (can be in VS Code)
- Run
npm ito install necessary libraries - Run
npm run devto open the dashboard - Click one of the displayed ports (Ex: "ws://localhost:8765")
(This is run on the Jetson)
- (Optional) Create a virtual environment
- Open the Backend folder in your Terminal
- Run
python3 -m venv venvto create a virtual environment called venv - Run
source venv/bin/activateto activate the virtual environment - You should now see
(venv)on the left side of your Terminal
- Run
pip install -r requirements.txtto install dependencies - Run
python3 server.pyto start the server