@@ -12,12 +12,27 @@ preview = ["pixi-build"]
1212version = " 0.1.0"
1313
1414[tasks ]
15- build = " colcon build --symlink-install --cmake-args -G Ninja "
16- clean = " rm -rf build install log "
17- test = " colcon test --event-handlers console_direct+ --return-code-on-test-failure "
15+ # Deploys the current environment
16+ deploy = " scripts/deploy_robots.py "
17+ # Runs code formatting and linting
1818_format = " pre-commit run --all-files"
1919format = [{ task = " _format" , environment = " format" }]
20- deploy = " scripts/deploy_robots.py"
20+
21+ # Builds all ROS 2 packages or a specific one if given
22+ [tasks .build ]
23+ cmd = " colcon build --symlink-install --cmake-args -G Ninja {{ '--packages-select ' + package if package }}"
24+ args = [{ arg = " package" , default = " " }]
25+
26+ # Cleans all build and install files or those of a specific package if given
27+ [tasks .clean ]
28+ cmd = " rm -rf build/{{ package }} install/{{ package }} {{ 'log' if not package }}"
29+ args = [{ arg = " package" , default = " " }]
30+
31+ # Runs tests for all ROS 2 packages or a specific one if given
32+ [tasks .test ]
33+ cmd = " colcon test --event-handlers console_direct+ --return-code-on-test-failure {{ '--packages-select ' + package if package }}"
34+ args = [{ arg = " package" , default = " " }]
35+
2136
2237[dependencies ]
2338# Base dependencies
@@ -95,6 +110,7 @@ ros-jazzy-generate-parameter-library = ">=0.5.0,<0.6"
95110ros-jazzy-geometry-msgs = " >=5.3.6,<6"
96111ros-jazzy-hardware-interface = " >=4.37.0,<5"
97112ros-jazzy-image-proc = " >=5.0.11,<6"
113+ ros-jazzy-image-publisher = " >=5.0.11,<6"
98114ros-jazzy-image-transport = " >=5.1.7,<6"
99115ros-jazzy-joint-state-publisher = " >=2.4.0,<3"
100116ros-jazzy-joint-state-publisher-gui = " >=2.4.0,<3"
0 commit comments