update tf3

This commit is contained in:
2026-02-07 11:03:18 +07:00
parent 4fb3fdc28c
commit 50062ef549
2 changed files with 11 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ if (NOT BUILDING_WITH_CATKIN)
tf3 tf3
data_convert data_convert
) )
find_library(TF3_LIBRARY NAMES tf3 PATHS /usr/lib /usr/local/lib /usr/lib/x86_64-linux-gnu)
else() else()
# ======================================================== # ========================================================
@@ -46,21 +46,24 @@ else()
robot_sensor_msgs robot_sensor_msgs
geometry_msgs geometry_msgs
robot_time robot_time
tf3
data_convert 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( catkin_package(
INCLUDE_DIRS include INCLUDE_DIRS include
LIBRARIES ${PROJECT_NAME} LIBRARIES ${PROJECT_NAME}
CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time tf3 data_convert CATKIN_DEPENDS robot_sensor_msgs geometry_msgs robot_time data_convert
DEPENDS Eigen3 DEPENDS Eigen3
) )
include_directories( include_directories(
include include
${catkin_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS}
${EIGEN3_INCLUDE_DIRS} ${EIGEN3_INCLUDE_DIRS}
${TF3_INCLUDE_DIR}
) )
endif() endif()
@@ -80,6 +83,7 @@ if(BUILDING_WITH_CATKIN)
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
PUBLIC ${catkin_LIBRARIES} PUBLIC ${catkin_LIBRARIES}
${TF3_LIBRARY}
) )
else() else()
@@ -93,6 +97,7 @@ else()
target_link_libraries(${PROJECT_NAME} target_link_libraries(${PROJECT_NAME}
PUBLIC PUBLIC
${PACKAGES_DIR} ${PACKAGES_DIR}
${TF3_LIBRARY}
) )
set_target_properties(${PROJECT_NAME} PROPERTIES set_target_properties(${PROJECT_NAME} PROPERTIES
@@ -174,7 +179,8 @@ if(BUILD_TESTING)
${PROJECT_NAME} ${PROJECT_NAME}
GTest::GTest GTest::GTest
GTest::Main GTest::Main
pthread Boost::system Boost::thread
${TF3_LIBRARY}
) )
add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}_test) add_test(NAME ${PROJECT_NAME}_test COMMAND ${PROJECT_NAME}_test)
endif() endif()

View File

@@ -28,9 +28,6 @@
<build_depend>robot_time</build_depend> <build_depend>robot_time</build_depend>
<run_depend>robot_time</run_depend> <run_depend>robot_time</run_depend>
<build_depend>tf3</build_depend>
<run_depend>tf3</run_depend>
<build_depend>data_convert</build_depend> <build_depend>data_convert</build_depend>
<run_depend>data_convert</run_depend> <run_depend>data_convert</run_depend>