Allows robot arms to be repurposed as camera arms.
Create virtual environment and install required packages. Using python package manager: uv
uv syncor alternatively
mkdir -p venv/py3.12
python3.12 -m venv venv/py3.12
pip install -r requirements.txtOptional Installation You can also opt in to install several other object detection models.
- mediapipe
- Run
uv sync --extra mediapipe - This will add the mediapipe model options in the model dropdown menu
- Run
- yolo
- Run
uv sync --extra yolo - This will add the yolo model option in the model dropdown menu
- Run
- all
- Run
uv sync --all-extras - This will add all of the extra model options in the dropdown menu
- Run
Pyinstaller can be used to create an executable (on any OS) for easier launching/distribution of the application. Follow the steps below to create an executable:
This is especially recommended if you want to use the talos executable on a Linux machine since the executable can be upwards of 3.9 GB, making it hard for us to easily create and distribute while using the free tier of GitHub Actions.
-
Install pyinstaller:
If using uv, then the dev dependencies should be installed by default by running:
uv sync --group dev
If not using uv:
pip install pyinstaller
-
Run the pyinstaller command to create an executable. This will create a
distfolder with the executabletalosinside.Using uv:
uv run pyinstaller --onefile --add-data "config.yaml:." --add-data "tracking/haar_cascade/haarcascade_frontalface_default.xml:tracking/haar_cascade" --add-data "tracking/media_pipe/efficientdet_lite0.tflite:tracking/media_pipe" --add-data "tracking/media_pipe/pose_landmarker_lite.task:tracking/media_pipe" talos.py
Otherwise:
pyinstaller --onefile --add-data "config.yaml:." --add-data "tracking/haar_cascade/haarcascade_frontalface_default.xml:tracking/haar_cascade" --add-data "tracking/media_pipe/efficientdet_lite0.tflite:tracking/media_pipe" --add-data "tracking/media_pipe/pose_landmarker_lite.task:tracking/media_pipe" talos.py
- Installation fails to build pybullet If pybullet build fails set a flag during installation:
CFLAGS="-Dfdopen=fdopen" pip install -r requirements.txtor with uv
CFLAGS="-Dfdopen=fdopen" uv sync- Tcl wasn't installed properly
when running
uv run talos.py, an error occurs:This probably means that Tcl wasn't installed properly.. Fix:brew install tcl-tkif this doesn't work, reinstall python for uvuv python uninstall 3.12 && uv python install 3.12
Activate your virtual environment (update 2025: no longer needed with uv)
source venv/py3.12/bin/activate- Edit
config/network_config.yamlto set the host and port for the operator to connect to. (The Pi is unctalos.student.rit.edu:61616) - Turn on the robot arm and connect it to the pi via USB.
- SSH into the Pi (username: pi, password: raspberry, IP: unctalos.student.rit.edu) and ensure the robot arm is connected by running:
/home/pi/talos/build/bin/erv- Run the commander and it should connect to the operator. Try a home command to test the connection.
If you are having trouble connecting to the arm, try running the following command on the Pi:
ls /dev/tty*and ensure that you see a device named /dev/ttyUSB0
If you don't see it, try unplugging and replugging the arm and running the command again. If it still doesn't show up, try restarting the Pi.
If you see the device, but still can't connect, try running the following command on the Pi:
screen /dev/ttyUSB0 9600Hit enter a few times to see if > shows up on each line. If it does, then the arm is connected properly. If not, try restarting the robot arm and running the command again.
After testing, exit the screen session by typing Ctrl+A then K then Y.