Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
05241c15dThis file is pinned to the selected release. Download the original to open it in your design tool.
# Working in `robot/` — how to run the scripts
**Every `tomctl` / `lerobot` command runs from the `robot/` directory, using this directory's venv
interpreter.** Get either wrong and you get `ModuleNotFoundError: No module named 'tomctl'` (or a
missing-dependency error). Two independent gotchas:
1. **CWD must be `robot/`.** `python -m tomctl.<x>` resolves `tomctl` (and the vendored `lerobot`)
off the current directory — there is no `pip install`. From any other directory you get
`No module named 'tomctl'`.
2. **Use the venv, not system Python.** `/usr/bin/python` doesn't have the deps. Use
`.venv/bin/python` (or `source .venv/bin/activate` first).
```bash
cd ~/armcade/robot
.venv/bin/python -m tomctl.real --id tom_follower_01
# ^ from robot/ ^ the venv, NOT /usr/bin/python
```
The Pi systemd units (`armcade-cameras`, `armcade-bridge`) already set
`WorkingDirectory=…/armcade/robot` and point at this `.venv`, so they never hit this — it only bites
manual/interactive runs.
If `.venv/` is missing, create it per [`README.md`](./README.md)
(`uv venv --python 3.12 .venv` + `uv pip install --python .venv/bin/python -r requirements.txt`).
See [`README.md`](./README.md), [`OPERATIONS.md`](./OPERATIONS.md),
[`REMOTE_CONTROL.md`](./REMOTE_CONTROL.md) for what to run.