Skip to content

Commit

Permalink
Fix ROS2 version detection for IK solvers
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanscherzinger committed Jan 9, 2024
1 parent dd97f79 commit e36e9ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cartesian_controller_base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ add_library(${PROJECT_NAME} SHARED
src/cartesian_controller_base.cpp
src/SpatialPDController.cpp
src/PDController.cpp
src/IKSolver.cpp
)

# Manual includes for local directories and non-ament packages
Expand All @@ -72,6 +71,10 @@ target_include_directories(${PROJECT_NAME}
${CMAKE_BINARY_DIR} # ROS2VersionConfig.h
)

target_link_libraries(${PROJECT_NAME}
ik_solvers
)

ament_target_dependencies(${PROJECT_NAME}
${${PROJECT_NAME}_EXPORTED_TARGETS}
${THIS_PACKAGE_INCLUDE_DEPENDS}
Expand All @@ -90,6 +93,7 @@ target_include_directories(ik_solvers
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
${CMAKE_BINARY_DIR} # ROS2VersionConfig.h
)

# Prevent pluginlib from using boost
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
#include <trajectory_msgs/msg/joint_trajectory_point.hpp>
#include <vector>

#include "ROS2VersionConfig.h"
#include "rclcpp/node.hpp"
#include "rclcpp_lifecycle/lifecycle_node.hpp"

Expand Down

0 comments on commit e36e9ed

Please sign in to comment.