8000 Port tf2 ros message filter with ros2 tf2 and message filters by gaoethan · Pull Request #81 · ros2/geometry2 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port tf2 ros message filter with ros2 tf2 and message filters #81

Merged
merged 10 commits into from
Nov 22, 2018
24 changes: 9 additions & 15 deletions tf2_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,23 @@ if(NOT CMAKE_CXX_STANDARD)
endif()

if(NOT ANDROID)
set(TF2_PY tf2_py)
set(TF2_PY tf2_py)
endif()

find_package(ament_cmake REQUIRED)
# TODO(tfoote) uncomment when reenabling server client interfaces
# find_package(actionlib REQUIRED)
# find_package(actionlib_msgs REQUIRED)
find_package(geometry_msgs REQUIRED)
find_package(message_filters REQUIRED)
find_package(rclcpp REQUIRED)
find_package(tf2 REQUIRED)
find_package(tf2_msgs REQUIRED)

find_package(rmw)

include_directories(include
${geometry_msgs_INCLUDE_DIRS}
${message_filters_INCLUDE_DIRS}
${rclcpp_INCLUDE_DIRS}
${rmw_INCLUDE_DIRS}
${rmw_implementation_INCLUDE_DIRS}
${tf2_INCLUDE_DIRS}
${tf2_msgs_INCLUDE_DIRS}
)
Expand All @@ -42,9 +40,8 @@ add_library(${PROJECT_NAME} SHARED

target_link_libraries(${PROJECT_NAME}
${geometry_msgs_LIBRARIES}
${message_filters_LIBRARIES}
${rclcpp_LIBRARIES}
${rmw_LIBRARIES}
${rmw_implementation_LIBRARIES}
${tf2_LIBRARIES}
${tf2_msgs_LIBRARIES}
)
Expand All @@ -70,8 +67,6 @@ target_link_libraries(static_transform_publisher
${PROJECT_NAME}
${geometry_msgs_LIBRARIES}
${rclcpp_LIBRARIES}
${rmw_LIBRARIES}
${rmw_implementation_LIBRARIES}
${tf2_LIBRARIES}
${tf2_msgs_LIBRARIES}
)
Expand All @@ -83,8 +78,6 @@ target_link_libraries(tf2_echo
${PROJECT_NAME}
${geometry_msgs_LIBRARIES}
${rclcpp_LIBRARIES}
${rmw_LIBRARIES}
${rmw_implementation_LIBRARIES}
${tf2_LIBRARIES}
${tf2_msgs_LIBRARIES}
)
Expand All @@ -96,8 +89,6 @@ target_link_libraries(tf2_echo
${PROJECT_NAME}
${geometry_msgs_LIBRARIES}
${rclcpp_LIBRARIES}
${rmw_LIBRARIES}
${rmw_implementation_LIBRARIES}
${tf2_LIBRARIES}
${tf2_msgs_LIBRARIES}
)
Expand Down Expand Up @@ -130,6 +121,11 @@ if(BUILD_TESTING)
ament_add_gtest(test_buffer test/test_buffer.cpp)
target_link_libraries(test_buffer ${PROJECT_NAME})

# Adds a tf2_ros message_filter unittest that uses
# multiple target frames and a non-zero time tolerance
ament_add_gtest(${PROJECT_NAME}_test_message_filter test/message_filter_test.cpp)
target_link_libraries(${PROJECT_NAME}_test_message_filter ${PROJECT_NAME})

# TODO(tfoote) port tests to use ROS2 instead of ROS1 api.
if (false)

Expand All @@ -148,8 +144,6 @@ find_package(catkin REQUIRED COMPONENTS
${TF2_PY}
)



# tf2_ros_test_listener
add_executable(${PROJECT_NAME}_test_listener EXCLUDE_FROM_ALL test/listener_unittest.cpp)
add_dependencies(${PROJECT_NAME}_test_listener tf2_msgs_gencpp)
Expand Down
Loading
0