update tf3
This commit is contained in:
@@ -36,7 +36,7 @@ if (NOT BUILDING_WITH_CATKIN)
|
||||
tf3
|
||||
data_convert
|
||||
)
|
||||
|
||||
find_library(TF3_LIBRARY NAMES tf3 PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
|
||||
else()
|
||||
|
||||
# ========================================================
|
||||
@@ -46,21 +46,24 @@ else()
|
||||
robot_sensor_msgs
|
||||
geometry_msgs
|
||||
robot_time
|
||||
tf3
|
||||
data_convert
|
||||
)
|
||||
|
||||
find_library(TF3_LIBRARY NAMES tf3 PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
|
||||
find_package(Eigen3 REQUIRED)
|
||||
|
||||
catkin_package(
|
||||
INCLUDE_DIRS include
|
||||
LIBRARIES ${PROJECT_NAME}
|
||||
CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time tf3 data_convert
|
||||
DEPENDS Eigen3
|
||||
CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time data_convert
|
||||
DEPENDS Eigen3
|
||||
)
|
||||
|
||||
include_directories(
|
||||
include
|
||||
${catkin_INCLUDE_DIRS}
|
||||
${EIGEN3_INCLUDE_DIRS}
|
||||
${TF3_INCLUDE_DIR}
|
||||
)
|
||||
endif()
|
||||
|
||||
@@ -80,6 +83,7 @@ if(BUILDING_WITH_CATKIN)
|
||||
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PUBLIC ${catkin_LIBRARIES}
|
||||
${TF3_LIBRARY}
|
||||
)
|
||||
|
||||
else()
|
||||
@@ -93,6 +97,7 @@ else()
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
PUBLIC
|
||||
${PACKAGES_DIR}
|
||||
${TF3_LIBRARY}
|
||||
)
|
||||
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
@@ -174,7 +179,8 @@ if(BUILD_TESTING)
|
||||
${PROJECT_NAME}
|
||||
GTest::GTest
|
||||
GTest::Main
|
||||
pthread
|
||||
Boost::system Boost::thread
|
||||
${TF3_LIBRARY}
|
||||
)
|
||||
add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}_test)
|
||||
endif()
|
||||
|
||||
@@ -28,9 +28,6 @@
|
||||
<build_depend>robot_time</build_depend>
|
||||
<run_depend>robot_time</run_depend>
|
||||
|
||||
<build_depend>tf3</build_depend>
|
||||
<run_depend>tf3</run_depend>
|
||||
|
||||
<build_depend>data_convert</build_depend>
|
||||
<run_depend>data_convert</run_depend>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user