Issues with service_msgs

asked 2023-03-21 12:09:31 -0500

tommy_erko gravatar image

The package service_msgs came with the 2023-03-17 Rolling update and we are having some issues with it. It was only added to action_msgs as a dependency In seemingly arbitrary packages (that don't need to depend on action_msgs), it cannot be resolved: CMake Error at /opt/ros/rolling/share/rcl_interfaces/cmake/ament_cmake_export_dependencies-extras.cmake:21 (find_package):

   By not providing "Findservice_msgs.cmake" in CMAKE_MODULE_PATH this project
    has asked CMake to find a package configuration file provided by
    "service_msgs", but CMake did not find one.
    Could not find a package configuration file provided by "service_msgs" with
    any of the following names:  
      service_msgsConfig.cmake
      service_msgs-config.cmake

Then once installed manually from APT, it fails the build as well:

In file included from /opt/ros/rolling/include/rclcpp/rclcpp/callback_group.hpp:24,
              from /opt/ros/rolling/include/rclcpp/rclcpp/any_executable.hpp:20,
              from /opt/ros/rolling/include/rclcpp/rclcpp/memory_strategy.hpp:25,
              from /opt/ros/rolling/include/rclcpp/rclcpp/memory_strategies.hpp:18,
              from /opt/ros/rolling/include/rclcpp/rclcpp/executor_options.hpp:20,
              from /opt/ros/rolling/include/rclcpp/rclcpp/executor.hpp:37,
              from /opt/ros/rolling/include/rclcpp/rclcpp/executors/multi_threaded_executor.hpp:25,
              from /opt/ros/rolling/include/rclcpp/rclcpp/executors.hpp:21,
              from /opt/ros/rolling/include/rclcpp/rclcpp/rclcpp.hpp:155,
              from /tmp/ws/src/rex_ros2_buildtools/packages_templates/package_cpp_with_ros_node/include/package_cpp_with_ros_node/my_node.hpp:6,
              from /tmp/ws/src/rex_ros2_buildtools/packages_templates/package_cpp_with_ros_node/src/my_node.cpp:3: /opt/ros/rolling/include/rclcpp/rclcpp/client.hpp:35:10: fatal error: rcl/service_introspection.h: No such file or directory
35 | #include "rcl/service_introspection.h"
   |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It seems the dependencies of the package and its linking through rosdep is not correct. Did anybody encounter a similar issue? We will try to create an example for an issue to the rcl_interfaces github.

edit retag flag offensive close merge delete