Skip to content

Commit 8ff8cf3

Browse files
authored
Fix additional geometry2 tf2 .h deprecations (#284)
1 parent b49117c commit 8ff8cf3

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/rviz_visual_tools.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,18 @@
4242
#include <rviz_visual_tools/rviz_visual_tools.hpp>
4343

4444
// Conversions
45-
#include <tf2/convert.h>
46-
#include <tf2/LinearMath/Vector3.h>
47-
#include <tf2/LinearMath/Quaternion.h>
4845
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
4946
#include <tf2_eigen/tf2_eigen.hpp>
5047
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
48+
#include <tf2/convert.hpp>
49+
#include <tf2/LinearMath/Vector3.hpp>
50+
#include <tf2/LinearMath/Quaternion.hpp>
5151
#else
5252
#include <tf2_eigen/tf2_eigen.h>
5353
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
54+
#include <tf2/convert.h>
55+
#include <tf2/LinearMath/Vector3.h>
56+
#include <tf2/LinearMath/Quaternion.h>
5457
#endif
5558

5659
// Use (void) to silent unused warnings.

src/tf_visual_tools.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@
3434
#include <rclcpp/create_timer.hpp>
3535
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
3636
#include <tf2_eigen/tf2_eigen.hpp>
37+
#include <tf2/convert.hpp>
3738
#else
3839
#include <tf2_eigen/tf2_eigen.h>
39-
#endif
40-
41-
// TF
4240
#include <tf2/convert.h>
41+
#endif
4342

4443
// C++
4544
#include <string>

0 commit comments

Comments
 (0)