Development environment¶
Everything needed to build, test and document the project runs on macOS or Linux. Python tools are
pinned in requirements-dev.txt and docs/requirements.txt, so local runs match CI exactly.
One-time setup¶
# Python tools (PlatformIO, ruff, clang-format, pre-commit, cmake, gcovr)
python3 -m venv .venv
.venv/bin/pip install -r requirements-dev.txt -r docs/requirements.txt
# Git hooks: formatting and linting run on every commit
.venv/bin/pre-commit install
System packages:
Tool |
macOS (Homebrew) |
Ubuntu / Fedora |
Used for |
|---|---|---|---|
Doxygen |
|
|
API reference |
Docker |
|
Docker Engine |
ROS 2 builds and tests in |
Node.js |
|
|
Web app |
On Apple Silicon, colima runs an arm64 Linux VM, the same CPU architecture as the Raspberry Pi,
so ROS 2 containers behave like they do on the robot.
Everyday commands¶
Task |
Command |
|---|---|
Lint and format everything |
|
Firmware static analysis |
|
Build the docs |
|
Commands for firmware builds, unit tests and ROS 2 are added to this page as those parts land.