From 80d792764f1ddb68bc710664833afa7f813855fd Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Dec 2026 22:03:00 +0900 Subject: [PATCH 1/3] ci(ros2): lyrical and rolling with the repository of the build farm (building) Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p --- .github/workflows/ros2.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ros2.yaml b/.github/workflows/ros2.yaml index 0727ef8..2b29f8f 100644 --- a/.github/workflows/ros2.yaml +++ b/.github/workflows/ros2.yaml @@ -16,3 +16,7 @@ jobs: - uses: ros-industrial/industrial_ci@master env: ROS_DISTRO: ${{ matrix.ROS_DISTRO }} + # lyrical and rolling with the repository of the build farm (building), as the build farm builds the packages + # with it: the changes of the dependencies (e.g. of cv_bridge) break the build there before they reach the + # testing and main ones + ROS_REPOSITORY_PATH: ${{ (matrix.ROS_DISTRO == 'lyrical' || matrix.ROS_DISTRO == 'rolling') && 'http://repo.ros2.org/ubuntu/building' || '' }} From d010ae6f305b3dc4e62741566f1cc6d371df95ca Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Dec 2026 22:27:37 +0900 Subject: [PATCH 2/3] posedetection_msgs: libopencv-dev to build with cv_bridge 4.1.1 of rolling cv_bridge 4.1.1 finds OpenCV in its CMake config for the packages using it, but has libopencv-dev as build_depend only, so the build farm does not install it for posedetection_msgs (ros-perception/vision_opencv#702). Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p --- posedetection_msgs/package.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posedetection_msgs/package.xml b/posedetection_msgs/package.xml index 750fc57..b4c5bb7 100644 --- a/posedetection_msgs/package.xml +++ b/posedetection_msgs/package.xml @@ -21,6 +21,9 @@ sensor_msgs geometry_msgs cv_bridge + + libopencv-dev message_generation rosidl_default_generators message_filters From 6e88545d220317bedc0b3bb5d9930f5c6fb7c58a Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Sat, 5 Dec 2026 22:35:05 +0900 Subject: [PATCH 3/3] posedetection_msgs: libopencv-dev is not a dependency of the interfaces rosidl_auto_generate_interfaces() passes all the build_depend of package.xml to rosidl_generate_interfaces(), which fails for libopencv-dev as it is not a CMake package. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Xo6jRt2Rcht9sQS6ms6A4p --- posedetection_msgs/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/posedetection_msgs/CMakeLists.txt b/posedetection_msgs/CMakeLists.txt index e184051..7032e02 100644 --- a/posedetection_msgs/CMakeLists.txt +++ b/posedetection_msgs/CMakeLists.txt @@ -76,6 +76,9 @@ elseif("$ENV{ROS_VERSION}" EQUAL 2) find_package(${_dep} REQUIRED) endforeach() + # libopencv-dev is a build_depend for cv_bridge (see package.xml), not a package of the interfaces + ament_package_xml() + list(REMOVE_ITEM ${PROJECT_NAME}_BUILD_DEPENDS libopencv-dev) rosidl_auto_generate_interfaces(ADD_LINTER_TESTS) rosidl_get_typesupport_target(cpp_typesupport_target "${PROJECT_NAME}" "rosidl_typesupport_cpp")