From 46d91129695af13996c54827def768b6859ff2e5 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Fri, 16 Jan 2026 14:29:21 -0800 Subject: [PATCH 1/3] Update ROS2 tutorial commands for building C++ nodes Updated commands to include 'colcon-common-extensions' and modified build command syntax. I assume this is what was intended originally since the new package was generated into a `src` folder and because of the arguments that come after `pixi run build`. --- docs/tutorials/ros2.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/tutorials/ros2.md b/docs/tutorials/ros2.md index 3202cdf318..7d28d19492 100644 --- a/docs/tutorials/ros2.md +++ b/docs/tutorials/ros2.md @@ -181,7 +181,7 @@ hello = { cmd = "ros2 run my_package my_node", depends-on = ["build"] } To build a C++ node you need to add the `ament_cmake` and some other build dependencies to your manifest file. ```shell -pixi add ros-humble-ament-cmake-auto compilers pkg-config cmake ninja +pixi add ros-humble-ament-cmake-auto compilers pkg-config cmake ninja colcon-common-extensions ``` Now you can create a C++ node with the following command @@ -194,7 +194,7 @@ Now you can build it again and run it with the following commands ```shell # Passing arguments to the build command to build with Ninja, add them to the manifest if you want to default to ninja. -pixi run build --cmake-args -G Ninja +pixi run colcon build --cmake-args -G Ninja pixi run ros2 run my_cpp_package my_cpp_node ``` From 873e23c656de125169fe149845b92960e03ed40e Mon Sep 17 00:00:00 2001 From: William Woodall Date: Thu, 22 Jan 2026 10:58:53 -0800 Subject: [PATCH 2/3] remove vestigial colcon in the build command --- docs/tutorials/ros2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/ros2.md b/docs/tutorials/ros2.md index 7d28d19492..42640c00d9 100644 --- a/docs/tutorials/ros2.md +++ b/docs/tutorials/ros2.md @@ -194,7 +194,7 @@ Now you can build it again and run it with the following commands ```shell # Passing arguments to the build command to build with Ninja, add them to the manifest if you want to default to ninja. -pixi run colcon build --cmake-args -G Ninja +pixi run build --cmake-args -G Ninja pixi run ros2 run my_cpp_package my_cpp_node ``` From 0727036be52b34a549a58b076f1f1ee9b49e8dde Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Fri, 23 Jan 2026 08:42:16 +0100 Subject: [PATCH 3/3] Apply suggestions from code review --- docs/tutorials/ros2.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/ros2.md b/docs/tutorials/ros2.md index 42640c00d9..f35c6d1489 100644 --- a/docs/tutorials/ros2.md +++ b/docs/tutorials/ros2.md @@ -181,7 +181,7 @@ hello = { cmd = "ros2 run my_package my_node", depends-on = ["build"] } To build a C++ node you need to add the `ament_cmake` and some other build dependencies to your manifest file. ```shell -pixi add ros-humble-ament-cmake-auto compilers pkg-config cmake ninja colcon-common-extensions +pixi add ros-humble-ament-cmake-auto compilers pkg-config "cmake<4" ninja colcon-common-extensions ``` Now you can create a C++ node with the following command