diff --git a/src/triton_pid_controller/CMakeLists.txt b/src/triton_pid_controller/CMakeLists.txt index 766313d8..a8659f89 100644 --- a/src/triton_pid_controller/CMakeLists.txt +++ b/src/triton_pid_controller/CMakeLists.txt @@ -23,25 +23,28 @@ find_package(sensor_msgs REQUIRED) find_package(std_msgs REQUIRED) find_package(triton_interfaces REQUIRED) find_package(tf2 REQUIRED) +find_package(tf2_geometry_msgs REQUIRED) -include_directories(include ${catkin_INCLUDE_DIRS}) +include_directories(include) -# uncomment the following section in order to fill in -# further dependencies manually. -# find_package( REQUIRED) -#target_link_libraries(triton_pid_controller ${YAML_CPP_LIBRARIES}) +# Add executable add_executable(triton_pid_controller src/triton_pid_controller.cpp) -target_link_libraries(triton_pid_controller ${YAML_CPP_LIBRARIES}) -target_include_directories(triton_pid_controller PUBLIC - $ - $) +# Link libraries +ament_target_dependencies(triton_pid_controller + rclcpp + rclcpp_components + sensor_msgs + std_msgs + triton_interfaces + tf2 + tf2_geometry_msgs +) +# Install install(TARGETS triton_pid_controller DESTINATION lib/${PROJECT_NAME}) -ament_target_dependencies(triton_pid_controller rclcpp rclcpp_components sensor_msgs std_msgs triton_interfaces tf2) - install(DIRECTORY launch config @@ -51,12 +54,10 @@ install(DIRECTORY if(BUILD_TESTING) # find_package(ament_lint_auto REQUIRED) # the following line skips the linter which checks for copyrights - # uncomment the line when a copyright and license is not present in all source files - # set(ament_cmake_copyright_FOUND TRUE) - # the following line skips cpplint (only works in a git repo) - # uncomment the line when this package is not in a git repo - #set(ament_cmake_cpplint_FOUND TRUE) + # uncomment the line when a copyright and license is not present + # set(ament_cmake_cpplint_FOUND TRUE) # ament_lint_auto_find_test_dependencies() endif() ament_package() + diff --git a/src/triton_pid_controller/package.xml b/src/triton_pid_controller/package.xml index 659f559d..e4c77f5c 100644 --- a/src/triton_pid_controller/package.xml +++ b/src/triton_pid_controller/package.xml @@ -1,5 +1,4 @@ - triton_pid_controller 0.0.0 @@ -16,6 +15,8 @@ geometry_msgs sensor_msgs tf2 + tf2_ros + tf2_geometry_msgs ament_lint_auto ament_lint_common @@ -24,3 +25,4 @@ ament_cmake +