Skip to content

Update package.xml to incude missing depends - #3503

Merged
Nir-Az merged 2 commits into
ros2-developmentfrom
Nir-Az-patch-1
Mar 27, 2026
Merged

Nir-Az merged 2 commits into
ros2-developmentfrom
Nir-Az-patch-1

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Mar 27, 2026 •

Copy link
Copy Markdown
Collaborator

Build Failure Root Cause

Package: realsense2_camera_msgs v4.57.7 (Humble, Ubuntu Jammy ARM64)

Error:
CMake Error at rosidl_generate_interfaces.cmake:147:
Unable to generate action interface for 'action/TriggeredCalibration.action'.
In order to generate action interfaces you must add a depend tag for
'action_msgs' in your package.xml.

What happened: The package defines an action interface (TriggeredCalibration.action) but the package.xml is missing a required
dependency on action_msgs. ROS2 action interfaces require action_msgs to generate the goal/result/feedback boilerplate.

Fix: Add the following to the package.xml of realsense2_camera_msgs:
action_msgs

This is likely a new .action file that was added (or recently moved into this package) without updating the dependency list.

09:26:20 -- Found builtin_interfaces: 1.2.2 (/opt/ros/humble/share/builtin_interfaces/cmake)
09:26:20 -- Found std_msgs: 4.9.1 (/opt/ros/humble/share/std_msgs/cmake)
09:26:20 -- Found sensor_msgs: 4.9.1 (/opt/ros/humble/share/sensor_msgs/cmake)
09:26:20 CMake Error at /opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:147 (message):
09:26:20 Unable to generate action interface for
09:26:20 'action/TriggeredCalibration.action'. In order to generate action
09:26:20 interfaces you must add a depend tag for 'action_msgs' in your package.xml.
09:26:20 Call Stack (most recent call first):
09:26:20 CMakeLists.txt:43 (rosidl_generate_interfaces)

Copilot AI review requested due to automatic review settings March 27, 2026 12:28

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds the missing ROS 2 dependency declaration needed by realsense2_camera_msgs (which defines an action) to ensure downstream builds/packaging resolve dependencies correctly.

Changes:

  • Add action_msgs to realsense2_camera_msgs/package.xml dependencies.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread realsense2_camera_msgs/package.xml Outdated

<buildtool_depend>ament_cmake</buildtool_depend>
<buildtool_depend>rosidl_default_generators</buildtool_depend>
<depend>action_msgs</depend>

Copilot AI Mar 27, 2026

Copy link

Choose a reason for hiding this comment

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

This package.xml uses separate <build_depend> and <exec_depend> entries for dependencies (e.g., builtin_interfaces/std_msgs/sensor_msgs). Adding action_msgs as a generic is inconsistent with the existing pattern and makes it less clear which phases require it. Consider replacing this with matching <build_depend>action_msgs</build_depend> and <exec_depend>action_msgs</exec_depend> entries (and removing the tag) to stay consistent and explicit.

Copilot uses AI. Check for mistakes.
@Nir-Az
Nir-Az merged commit 7c1526a into ros2-development Mar 27, 2026
10 of 13 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.

2 participants