Skip to content

Commit a369b72

Browse files
fix: include tf2/utils.hpp instead of tf2/utils.h (#65)
* include tf2/utils.hpp Signed-off-by: Yutaka Kondo <[email protected]> * style(pre-commit): autofix --------- Signed-off-by: Yutaka Kondo <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6783a16 commit a369b72

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

autoware_utils_geometry/include/autoware_utils_geometry/geometry.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#define EIGEN_MPL2_ONLY
2828
#include <Eigen/Core>
29+
#include <tf2/utils.hpp>
2930

3031
#include <autoware_internal_planning_msgs/msg/path_with_lane_id.hpp>
3132
#include <autoware_planning_msgs/msg/path.hpp>
@@ -40,8 +41,6 @@
4041
#include <geometry_msgs/msg/vector3.hpp>
4142
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
4243

43-
#include <tf2/utils.h>
44-
4544
// TODO(wep21): Remove these apis
4645
// after they are implemented in ros2 geometry2.
4746
namespace tf2

autoware_utils_geometry/src/geometry/boost_polygon_utils.cpp

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

1717
#include "autoware_utils_geometry/geometry.hpp"
1818

19-
#include <boost/geometry/geometry.hpp>
19+
#include <tf2/utils.hpp>
2020

21-
#include <tf2/utils.h>
21+
#include <boost/geometry/geometry.hpp>
2222

2323
namespace
2424
{

autoware_utils_geometry/src/geometry/pose_deviation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "autoware_utils_math/normalization.hpp"
1818

19-
#include <tf2/utils.h>
19+
#include <tf2/utils.hpp>
2020

2121
#define EIGEN_MPL2_ONLY
2222
#include <Eigen/Core>

autoware_utils_geometry/src/msg/operation.cpp

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

1515
#include "autoware_utils_geometry/msg/operation.hpp"
1616

17-
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
17+
#include <tf2/utils.hpp>
1818

19-
#include <tf2/utils.h>
19+
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
2020

2121
// NOTE: Do not use autoware_utils namespace
2222
namespace geometry_msgs

0 commit comments

Comments
 (0)