Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
danialramzan authored Aug 6, 2024
1 parent f86d3f3 commit cad8b89
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 17 deletions.
33 changes: 17 additions & 16 deletions src/triton_pid_controller/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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(<dependency> 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
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
# 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
Expand All @@ -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()

4 changes: 3 additions & 1 deletion src/triton_pid_controller/package.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>triton_pid_controller</name>
<version>0.0.0</version>
Expand All @@ -16,6 +15,8 @@
<depend>geometry_msgs</depend>
<depend>sensor_msgs</depend>
<depend>tf2</depend>
<depend>tf2_ros</depend>
<depend>tf2_geometry_msgs</depend>

<test_depend>ament_lint_auto</test_depend>
<test_depend>ament_lint_common</test_depend>
Expand All @@ -24,3 +25,4 @@
<build_type>ament_cmake</build_type>
</export>
</package>

0 comments on commit cad8b89

Please sign in to comment.