Skip to content

Commit 3a0ae63

Browse files
authored
Merge pull request #41 from ROBOTIS-GIT/feature-cmake-fix
Modified the CMakelists for kilted
2 parents e7fe8aa + a467cae commit 3a0ae63

File tree

3 files changed

+22
-11
lines changed

3 files changed

+22
-11
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog for package dynamixel_hardware_interface
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
1.4.5 (2025-05-30)
6+
------------------
7+
* Deprecate ament_include_dependency usage in CMakeLists.txt
8+
* Contributors: Wonho Yun
9+
510
1.4.4 (2025-05-28)
611
------------------
712
* Added proper command interface support with ROS2-Dynamixel interface mapping

CMakeLists.txt

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ endif()
1818
find_package(ament_cmake REQUIRED)
1919
find_package(hardware_interface REQUIRED)
2020
find_package(rclcpp REQUIRED)
21+
find_package(rclcpp_lifecycle REQUIRED)
2122
find_package(pluginlib REQUIRED)
2223
find_package(realtime_tools REQUIRED)
2324

@@ -40,17 +41,22 @@ target_include_directories(
4041
${PROJECT_NAME}
4142
PRIVATE
4243
include
44+
${dynamixel_sdk_INCLUDE_DIRS}
45+
${hardware_interface_INCLUDE_DIRS}
46+
${realtime_tools_INCLUDE_DIRS}
47+
${rclcpp_lifecycle_INCLUDE_DIRS}
4348
)
4449

45-
ament_target_dependencies(
46-
${PROJECT_NAME}
47-
hardware_interface
48-
pluginlib
49-
rclcpp
50-
dynamixel_sdk
51-
std_srvs
52-
dynamixel_interfaces
53-
realtime_tools
50+
target_link_libraries(${PROJECT_NAME}
51+
PUBLIC
52+
${hardware_interface_TARGETS}
53+
pluginlib::pluginlib
54+
rclcpp::rclcpp
55+
rclcpp_lifecycle::rclcpp_lifecycle
56+
${dynamixel_sdk_TARGETS}
57+
${std_srvs_TARGETS}
58+
${dynamixel_interfaces_TARGETS}
59+
${realtime_tools_TARGETS}
5460
)
5561

5662
pluginlib_export_plugin_description_file(hardware_interface dynamixel_hardware_interface_plugin.xml)
@@ -92,11 +98,11 @@ ament_export_include_directories(include)
9298
ament_export_libraries(${PROJECT_NAME})
9399
ament_export_dependencies(
94100
rclcpp
101+
rclcpp_lifecycle
95102
hardware_interface
96103
pluginlib
97104
dynamixel_sdk
98105
dynamixel_interfaces
99-
aimbot_log_interfaces
100106
)
101107

102108
ament_package()

package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>dynamixel_hardware_interface</name>
5-
<version>1.4.4</version>
5+
<version>1.4.5</version>
66
<description>
77
ROS 2 package providing a hardware interface for controlling Dynamixel motors via the ROS 2 control framework.
88
</description>

0 commit comments

Comments
 (0)