Colcon integration
Petal ships a colcon deps verb that wraps petal sync and petal status.
Install
bash
uv tool install "petal-ros[colcon]"Usage
Run from a ROS2 workspace root:
bash
colcon deps sync
colcon deps status
colcon deps sync --dry-run
colcon deps sync --frozenUse an explicit workspace path when needed:
bash
colcon deps sync --workspace /path/to/wsBehavior
colcon deps honors the same sync and status behavior as the main Petal CLI:
syncresolves and installs dependencies.statusreports drift and exits with code2when the workspace is out of sync.--dry-runshows the planned install without mutating state.--frozenenforcespetal.lock.