-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Make tf2_eigen work for ROS2. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
e2392e0
commit 735f7a4
Showing
10 changed files
with
128 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
project(tf2_eigen) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
cmake_modules | ||
geometry_msgs | ||
tf2 | ||
) | ||
|
||
find_package(Eigen REQUIRED) | ||
include_directories(${EIGEN_INCLUDE_DIRS}) | ||
add_definitions(${EIGEN_DEFINITIONS}) | ||
|
||
include_directories(${catkin_INCLUDE_DIRS}) | ||
if(NOT WIN32) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall -Wextra") | ||
endif() | ||
|
||
include_directories(include) | ||
find_package(ament_cmake REQUIRED) | ||
find_package(geometry_msgs REQUIRED) | ||
find_package(tf2 REQUIRED) | ||
find_package(tf2_ros REQUIRED) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
DEPENDS eigen) | ||
find_package(Eigen3 REQUIRED) | ||
set(Eigen_INCLUDE_DIR "${EIGEN3_INCLUDE_DIR}") | ||
message("Using Eigen3 include dirs: ${Eigen_INCLUDE_DIR}") | ||
|
||
install(DIRECTORY include/${PROJECT_NAME}/ | ||
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}) | ||
|
||
|
||
if(CATKIN_ENABLE_TESTING) | ||
|
||
catkin_add_gtest(tf2_eigen-test test/tf2_eigen-test.cpp) | ||
target_link_libraries(tf2_eigen-test ${catkin_LIBRARIES} ${GTEST_LIBRARIES}) | ||
|
||
DESTINATION include/${PROJECT_NAME}) | ||
|
||
if(BUILD_TESTING) | ||
find_package(ament_cmake_gtest REQUIRED) | ||
ament_add_gtest(tf2_eigen-test test/tf2_eigen-test.cpp) | ||
if(TARGET tf2_eigen-test) | ||
target_include_directories(tf2_eigen-test PUBLIC | ||
include | ||
${tf2_INCLUDE_DIRS} | ||
${tf2_ros_INCLUDE_DIRS} | ||
${Eigen_INCLUDE_DIR} | ||
) | ||
endif() | ||
endif() | ||
|
||
ament_export_include_directories(include) | ||
ament_export_dependencies(tf2_ros) | ||
ament_package() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,19 @@ | |
<maintainer email="[email protected]">Koji Terada</maintainer> | ||
<license>BSD</license> | ||
|
||
<buildtool_depend>catkin</buildtool_depend> | ||
<buildtool_depend>ament_cmake</buildtool_depend> | ||
|
||
<build_depend>eigen</build_depend> | ||
|
||
<depend>geometry_msgs</depend> | ||
<depend>tf2</depend> | ||
<depend>tf2_ros</depend> | ||
|
||
<build_depend>cmake_modules</build_depend> | ||
<build_depend>eigen</build_depend> | ||
<test_depend>ament_cmake_gtest</test_depend> | ||
|
||
<build_export_depend>eigen</build_export_depend> | ||
|
||
<export> | ||
<build_type>ament_cmake</build_type> | ||
</export> | ||
</package> |
Oops, something went wrong.