-
Notifications
You must be signed in to change notification settings - Fork 905
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch robot_localization to modern CMake idioms. (#895)
Some of these have been best practice for a while, and some of them will become best practice in the near future. 1. Move the include directory down one-level. This is to better support overlays and underlays; see ros2/ros2#1150 for the entire saga. The upshot is that all includes should be one more directory level down, and CMake will handle the differences. This has been best practice since Humble. 2. Switch from ament_target_dependencies() to target_link_libraries(). ament_target_dependencies was developed in the days before target_link_libraries() was fully capable, and nowadays target_link_libraries() is a superset of the functionality. There is one oddity here, in that in order to deal with ROS message packages, we have to use ${<msg_pkg_name>_TARGETS}, rather than the traditional CMake target like msg_pkg_name::msg_pkg_name. This is a bug in ROS that will eventually be fixed. 3. Export a CMake target from robot_localization. This means that downstream packages will be able to use target_link_libraries(<target> robot_localization::robot_localization) 4. Export all dependencies with ament_export_dependencies. This ensures that downstream project which rely on this one will be able to find all of the includes. Signed-off-by: Chris Lalancette <[email protected]>
- Loading branch information
1 parent
19065fa
commit e375350
Showing
5 changed files
with
87 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<version>3.9.0</version> | ||
<description>Provides nonlinear state estimation through sensor fusion of an abritrary number of sensors.</description> | ||
|
||
<author email="[email protected]">Tom Moore</author> | ||
<author email="[email protected]">Tom Moore</author> | ||
<maintainer email="[email protected]">Tom Moore</maintainer> | ||
<maintainer email="[email protected]">Steve Macenski</maintainer> | ||
|
||
|
@@ -20,17 +20,17 @@ | |
<build_depend>libboost-dev</build_depend> | ||
<build_export_depend>libboost-dev</build_export_depend> | ||
|
||
<depend>angles</depend> | ||
<depend>builtin_interfaces</depend> | ||
<depend>diagnostic_msgs</depend> | ||
<depend>diagnostic_updater</depend> | ||
<depend>eigen</depend> | ||
<depend>geographic_msgs</depend> | ||
<depend>geometry_msgs</depend> | ||
<depend>diagnostic_msgs</depend> | ||
<depend>diagnostic_updater</depend> | ||
<depend>geographiclib</depend> | ||
<depend>message_filters</depend> | ||
<depend>nav_msgs</depend> | ||
<depend>angles</depend> | ||
<build_depend>rclcpp</build_depend> | ||
<build_depend>rmw_implementation</build_depend> | ||
<depend>rclcpp</depend> | ||
<depend>sensor_msgs</depend> | ||
<depend>std_msgs</depend> | ||
<depend>std_srvs</depend> | ||
|
@@ -40,18 +40,14 @@ | |
<depend>tf2_ros</depend> | ||
<depend>yaml_cpp_vendor</depend> | ||
|
||
<test_depend>ament_cmake_gtest</test_depend> | ||
<test_depend>builtin_interfaces</test_depend> | ||
<exec_depend>rosidl_default_runtime</exec_depend> | ||
|
||
<exec_depend>rclcpp</exec_depend> | ||
<exec_depend>rmw_implementation</exec_depend> | ||
|
||
<test_depend>ament_cmake_gtest</test_depend> | ||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
<test_depend>launch_ros</test_depend> | ||
<test_depend>launch_testing_ament_cmake</test_depend> | ||
|
||
<member_of_group>rosidl_interface_packages</member_of_group> | ||
|
||
<export> | ||
|
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
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