We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93cb7c0 commit ed1fa5aCopy full SHA for ed1fa5a
1 file changed
doc/examples/trajopt_planner/src/trajopt_example.cpp
@@ -17,9 +17,19 @@
17
#include <moveit_msgs/PlanningScene.h>
18
19
#include <geometry_msgs/TransformStamped.h>
20
-#include <tf2/utils.hpp>
21
-#include <tf2_eigen/tf2_eigen.hpp>
22
-#include <tf2_ros/transform_listener.hpp>
+
+// TODO(mosfet80): remove else after EOL galactic
+#if __has_include(<tf2/utils.hpp>)
23
+ #include <tf2/utils.hpp>
24
+ #include <tf2_eigen/tf2_eigen.hpp>
25
+ #include <tf2_ros/transform_listener.hpp>
26
+#else
27
+ #include <tf2/utils.h>
28
+ #include <tf2_eigen/tf2_eigen.h>
29
+ #include <tf2_ros/transform_listener.h>
30
+#endif
31
32
33
34
/* Author: Omid Heidari
35
Desc: This file is a test for using trajopt in MoveIt. The goal is to make different types of constraints in
0 commit comments