Skip to content

Commit

Permalink
Updated dependencies.
Browse files Browse the repository at this point in the history
Removed test node. Examples serve the purpose.
  • Loading branch information
StefanFabian committed Aug 16, 2024
1 parent 9b9e9ac commit 9f5bca5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 171 deletions.
21 changes: 3 additions & 18 deletions ros_babel_fish/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ find_package(rcpputils REQUIRED)
find_package(rosidl_runtime_cpp REQUIRED)
find_package(rosidl_typesupport_cpp REQUIRED)
find_package(rosidl_typesupport_introspection_cpp REQUIRED)
find_package(ros_babel_fish_test_msgs REQUIRED)

###########
## Build ##
Expand Down Expand Up @@ -54,65 +53,50 @@ target_include_directories(${PROJECT_NAME} PUBLIC
)
ament_target_dependencies(${PROJECT_NAME} ament_index_cpp rclcpp rclcpp_action rcpputils rosidl_runtime_cpp rosidl_typesupport_cpp rosidl_typesupport_introspection_cpp)

add_executable(test_node src/test_node.cpp)
target_link_libraries(test_node ${PROJECT_NAME})
ament_target_dependencies(test_node rclcpp ros_babel_fish_test_msgs)
target_include_directories(test_node PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

# Examples
add_executable(any_publisher examples/any_publisher.cpp)
target_link_libraries(any_publisher ${PROJECT_NAME})
ament_target_dependencies(any_publisher rclcpp)
target_include_directories(any_publisher PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

add_executable(any_subscriber examples/any_subscriber.cpp)
target_link_libraries(any_subscriber ${PROJECT_NAME})
ament_target_dependencies(any_subscriber rclcpp)
target_include_directories(any_subscriber PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

add_executable(troll_node examples/troll_node.cpp)
target_link_libraries(troll_node ${PROJECT_NAME})
ament_target_dependencies(troll_node rclcpp)
target_include_directories(troll_node PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

add_executable(service_server examples/service_server.cpp)
target_link_libraries(service_server ${PROJECT_NAME})
ament_target_dependencies(service_server rclcpp)
target_include_directories(service_server PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

add_executable(service_client examples/service_client.cpp)
target_link_libraries(service_client ${PROJECT_NAME})
ament_target_dependencies(service_client rclcpp)
target_include_directories(service_client PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)

find_package(action_tutorials_interfaces REQUIRED)
add_executable(action_client examples/action_client.cpp)
target_link_libraries(action_client ${PROJECT_NAME})
ament_target_dependencies(action_client rclcpp rclcpp_action action_tutorials_interfaces)
target_include_directories(action_client PRIVATE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
)


#############
## Install ##
#############
Expand All @@ -128,9 +112,9 @@ install(
INCLUDES DESTINATION include
)

# Mark test_node and examples for installation
# Mark examples for installation
install(
TARGETS test_node action_client any_publisher any_subscriber service_client service_server troll_node
TARGETS action_client any_publisher any_subscriber service_client service_server troll_node
DESTINATION lib/${PROJECT_NAME}
)

Expand All @@ -150,6 +134,7 @@ if (BUILD_TESTING)
find_package(action_tutorials_interfaces REQUIRED)
find_package(example_interfaces REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(ros_babel_fish_test_msgs REQUIRED)
include_directories(include)

ament_add_gtest(test_message test/message.cpp)
Expand Down
4 changes: 4 additions & 0 deletions ros_babel_fish/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,12 @@
<depend>rclcpp</depend>
<depend>rclcpp_action</depend>
<depend>rcpputils</depend>
<depend>rosidl_runtime_cpp</depend>
<depend>rosidl_typesupport_cpp</depend>
<depend>rosidl_typesupport_introspection_cpp</depend>
<build_depend>action_tutorials_interfaces</build_depend>
<build_depend>geometry_msgs</build_depend>
<test_depend>ament_cmake_gtest</test_depend>
<test_depend>ament_cmake_clang_format</test_depend>
<test_depend>ament_cmake_cppcheck</test_depend>
<test_depend>ament_lint_auto</test_depend>
Expand Down
153 changes: 0 additions & 153 deletions ros_babel_fish/src/test_node.cpp

This file was deleted.

0 comments on commit 9f5bca5

Please sign in to comment.