Skip to content

Commit ae43618

Browse files
authored
fix: tf2 uses hpp headers in rolling (and is backported) (#483)
* tf2 uses hpp headers in rolling (and is backported) Signed-off-by: Tim Clephas <[email protected]> * fixup! tf2 uses hpp headers in rolling (and is backported) Signed-off-by: Tim Clephas <[email protected]> --------- Signed-off-by: Tim Clephas <[email protected]>
1 parent dfce97f commit ae43618

File tree

30 files changed

+43
-49
lines changed

30 files changed

+43
-49
lines changed

common/autoware_interpolation/include/autoware/interpolation/spherical_linear_interpolation.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
#include "autoware/interpolation/interpolation_utils.hpp"
1919

20-
#include <geometry_msgs/msg/quaternion.hpp>
20+
#include <tf2/utils.hpp>
2121

22-
#include <tf2/utils.h>
22+
#include <geometry_msgs/msg/quaternion.hpp>
2323

2424
#ifdef ROS_DISTRO_GALACTIC
2525
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>

common/autoware_motion_utils/test/src/resample/test_resample.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
#include <autoware_utils_geometry/geometry.hpp>
2020
#include <autoware_utils_math/constants.hpp>
2121
#include <autoware_utils_math/unit_conversion.hpp>
22+
#include <tf2/LinearMath/Quaternion.hpp>
2223

2324
#include <gtest/gtest.h>
2425
#include <gtest/internal/gtest-port.h>
25-
#include <tf2/LinearMath/Quaternion.h>
2626

2727
#include <limits>
2828
#include <vector>

common/autoware_motion_utils/test/src/trajectory/benchmark_calcLateralOffset.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@
1414

1515
#include "autoware/motion_utils/trajectory/trajectory.hpp"
1616

17+
#include <tf2/LinearMath/Quaternion.hpp>
18+
1719
#include <gtest/gtest.h>
1820
#include <gtest/internal/gtest-port.h>
19-
#include <tf2/LinearMath/Quaternion.h>
2021

2122
#include <random>
2223

common/autoware_motion_utils/test/src/trajectory/test_interpolation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
#include <autoware_utils_geometry/boost_geometry.hpp>
2020
#include <autoware_utils_math/unit_conversion.hpp>
21+
#include <tf2/LinearMath/Quaternion.hpp>
2122

2223
#include <gtest/gtest.h>
2324
#include <gtest/internal/gtest-port.h>
24-
#include <tf2/LinearMath/Quaternion.h>
2525

2626
#include <limits>
2727
#include <vector>

common/autoware_motion_utils/test/src/trajectory/test_trajectory.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
#include <autoware_utils_geometry/boost_geometry.hpp>
1919
#include <autoware_utils_math/unit_conversion.hpp>
20+
#include <tf2/LinearMath/Quaternion.hpp>
2021

2122
#include <gtest/gtest.h>
2223
#include <gtest/internal/gtest-port.h>
23-
#include <tf2/LinearMath/Quaternion.h>
2424

2525
#include <algorithm>
2626
#include <limits>

common/autoware_trajectory/examples/example_pose.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717

1818
#include <autoware/pyplot/pyplot.hpp>
1919
#include <range/v3/all.hpp>
20+
#include <tf2/LinearMath/Quaternion.hpp>
21+
#include <tf2/LinearMath/Vector3.hpp>
2022

2123
#include <geometry_msgs/msg/pose.hpp>
2224

2325
#include <pybind11/embed.h>
2426
#include <pybind11/stl.h>
25-
#include <tf2/LinearMath/Quaternion.h>
26-
#include <tf2/LinearMath/Vector3.h>
2727

2828
#include <algorithm>
2929
#include <string>

common/autoware_trajectory/examples/example_readme.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
#include <autoware/pyplot/pyplot.hpp>
2525
#include <range/v3/all.hpp>
26+
#include <tf2/LinearMath/Quaternion.hpp>
27+
#include <tf2/LinearMath/Vector3.hpp>
2628

2729
#include <autoware_internal_planning_msgs/msg/path_point_with_lane_id.hpp>
2830
#include <autoware_planning_msgs/msg/path_point.hpp>
2931
#include <geometry_msgs/msg/point.hpp>
3032

3133
#include <pybind11/embed.h>
3234
#include <pybind11/stl.h>
33-
#include <tf2/LinearMath/Quaternion.h>
34-
#include <tf2/LinearMath/Vector3.h>
3535

3636
#include <iostream>
3737
#include <random>

common/autoware_trajectory/src/pose.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
#include "autoware/trajectory/interpolator/spherical_linear.hpp"
2020
#include "autoware/trajectory/threshold.hpp"
2121

22-
#include <tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.hpp>
22+
#include <tf2/LinearMath/Quaternion.hpp>
23+
#include <tf2/LinearMath/Vector3.hpp>
24+
#include <tf2/utils.hpp>
2325

24-
#include <tf2/LinearMath/Quaternion.h>
25-
#include <tf2/LinearMath/Vector3.h>
26-
#include <tf2/utils.h>
26+
#include <tf2_geometry_msgs/tf2_geometry_msgs/tf2_geometry_msgs.hpp>
2727

2828
#include <cmath>
2929
#include <memory>

control/autoware_simple_pure_pursuit/src/simple_pure_pursuit.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
#include "simple_pure_pursuit.hpp"
1616

1717
#include <autoware/motion_utils/trajectory/trajectory.hpp>
18-
19-
#include <tf2/utils.h>
18+
#include <tf2/utils.hpp>
2019

2120
#include <algorithm>
2221

localization/autoware_ekf_localizer/include/autoware/ekf_localizer/ekf_localizer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
#include <autoware_utils_logging/logger_level_configure.hpp>
2424
#include <autoware_utils_system/stop_watch.hpp>
2525
#include <rclcpp/rclcpp.hpp>
26+
#include <tf2/LinearMath/Quaternion.hpp>
27+
#include <tf2/utils.hpp>
2628

2729
#include <autoware_internal_debug_msgs/msg/float64_multi_array_stamped.hpp>
2830
#include <autoware_internal_debug_msgs/msg/float64_stamped.hpp>
@@ -36,8 +38,6 @@
3638
#include <nav_msgs/msg/odometry.hpp>
3739
#include <std_srvs/srv/set_bool.hpp>
3840

39-
#include <tf2/LinearMath/Quaternion.h>
40-
#include <tf2/utils.h>
4141
#include <tf2_ros/buffer.h>
4242
#include <tf2_ros/transform_broadcaster.h>
4343
#include <tf2_ros/transform_listener.h>

0 commit comments

Comments
 (0)