Skip to content

Comments

Fix missing ROS2MedkitCompat.cmake in sensor_diagnostics Dockerfile#29

Merged
bburda merged 1 commit intoselfpatch:mainfrom
victorsolaz:fix/sensor-diagnostics-missing-cmake-module
Feb 19, 2026
Merged

Fix missing ROS2MedkitCompat.cmake in sensor_diagnostics Dockerfile#29
bburda merged 1 commit intoselfpatch:mainfrom
victorsolaz:fix/sensor-diagnostics-missing-cmake-module

Conversation

@victorsolaz
Copy link
Contributor

Description

Preserve ROS2MedkitCompat.cmake from the ros2_medkit clone before deleting it in the sensor_diagnostics Dockerfile. Without this, colcon build fails because ros2_medkit_serialization (and other packages) cannot resolve their ../../cmake/ROS2MedkitCompat.cmake include path.

The fix adds a single line to copy the shared CMake module to ${COLCON_WS}/cmake/ — the exact location the relative paths resolve to from packages under ${COLCON_WS}/src/.

Related Issue

Closes #28

Checklist

  • Tested locally
  • README updated (if needed)

Preserve the shared CMake module from the ros2_medkit clone before
deleting it. Without this, colcon build fails because
ros2_medkit_serialization (and other packages) cannot resolve
their ../../cmake/ROS2MedkitCompat.cmake include path.

Fixes selfpatch#28
Copy link
Contributor

@bburda bburda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@victorsolaz Thanks for this! +1

@bburda bburda merged commit fcc43f6 into selfpatch:main Feb 19, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sensor_diagnostics: Docker build fails — missing ROS2MedkitCompat.cmake

2 participants