diff --git a/CMakeLists.txt b/CMakeLists.txt index a54abbd..fa4bdd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ endif() find_package(ament_cmake REQUIRED) find_package(ament_cmake_ros REQUIRED) find_package(can_msgs REQUIRED) +find_package(diagnostic_msgs REQUIRED) find_package(diagnostic_updater REQUIRED) find_package(fmt REQUIRED) find_package(rclcpp REQUIRED) @@ -31,6 +32,7 @@ target_include_directories(socketcan_bridge_component PUBLIC $) ament_target_dependencies(socketcan_bridge_component can_msgs + diagnostic_msgs diagnostic_updater rclcpp rclcpp_components diff --git a/package.xml b/package.xml index b4ecfa6..2eb1e8f 100644 --- a/package.xml +++ b/package.xml @@ -19,6 +19,7 @@ SPDX-License-Identifier: Apache-2.0 ament_cmake_ros can_msgs + diagnostic_msgs diagnostic_updater fmt rclcpp