Skip to content

Commit

Permalink
Remove __has_include statements (moveit#1481)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vatan Aksoy Tezer authored Aug 7, 2022
1 parent 3dcd74f commit 0b5a7fa
Show file tree
Hide file tree
Showing 70 changed files with 0 additions and 360 deletions.
5 changes: 0 additions & 5 deletions moveit_core/collision_detection/src/collision_tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@
#include <moveit/collision_detection/collision_tools.h>
#include <rclcpp/clock.hpp>
#include <rclcpp/time.hpp>

#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

namespace collision_detection
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <memory>
#include <mutex>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <moveit/collision_distance_field/collision_env_distance_field.h>
#include <moveit/collision_distance_field/collision_common_distance_field.h>
#include <moveit/distance_field/propagation_distance_field.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@

#include <geometry_msgs/msg/pose_stamped.hpp>
#include <kdl_parser/kdl_parser.hpp>
#if __has_include(<tf2_kdl/tf2_kdl.hpp>)
#include <tf2_kdl/tf2_kdl.hpp>
#else
#include <tf2_kdl/tf2_kdl.h>
#endif
#include <algorithm>
#include <cmath>

Expand Down
4 changes: 0 additions & 4 deletions moveit_core/distance_field/src/distance_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <octomap/octomap.h>
#include <octomap/OcTree.h>

Expand Down
4 changes: 0 additions & 4 deletions moveit_core/distance_field/test/test_distance_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#include <moveit/distance_field/propagation_distance_field.h>
#include <moveit/distance_field/find_internal_points.h>
#include <geometric_shapes/body_operations.h>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <octomap/octomap.h>
#include <memory>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <functional>
#include <limits>
#include <math.h>
Expand Down
8 changes: 0 additions & 8 deletions moveit_core/kinematic_constraints/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,8 @@
#include <rclcpp/parameter_value.hpp>

#include "rclcpp/node.hpp"
#if __has_include(<tf2_geometry_msgs/tf2_geometry_msgs.hpp>)
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

using namespace moveit::core;

Expand Down
4 changes: 0 additions & 4 deletions moveit_core/kinematic_constraints/test/test_constraints.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@
#include <gtest/gtest.h>
#include <urdf_parser/urdf_parser.h>
#include <fstream>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <math.h>
#include <moveit/utils/robot_model_test_utils.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,8 @@
#include <gtest/gtest.h>

#include <urdf_parser/urdf_parser.h>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif
#include <math.h>

#include <moveit/utils/robot_model_test_utils.h>
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/planning_scene/src/planning_scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,7 @@
#include <octomap_msgs/conversions.h>
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <memory>
#include <set>

Expand Down
4 changes: 0 additions & 4 deletions moveit_core/planning_scene/test/test_collision_objects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@
#include <sstream>
#include <string>

#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

namespace
{
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/robot_state/src/conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@
#include <geometric_shapes/shape_operations.h>
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <string>

namespace moveit
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/robot_state/src/robot_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <cassert>
#include <functional>
#include <moveit/macros/console_colors.h>
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/robot_state/test/robot_state_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
#include <moveit/robot_state/robot_state.h>
#include <moveit/utils/robot_model_test_utils.h>
#include <urdf_parser/urdf_parser.h>
#if __has_include(<tf2_geometry_msgs/tf2_geometry_msgs.hpp>)
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif
#include <gtest/gtest.h>
#include <sstream>
#include <algorithm>
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/robot_state/test/test_aabb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
#include <fstream>
#include <string>
#include <gtest/gtest.h>
#if __has_include(<tf2_geometry_msgs/tf2_geometry_msgs.hpp>)
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif
#include <tf2/LinearMath/Vector3.h>
#include <moveit/utils/robot_model_test_utils.h>

Expand Down
4 changes: 0 additions & 4 deletions moveit_core/robot_trajectory/src/robot_trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,7 @@
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#include <rclcpp/time.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <numeric>

namespace robot_trajectory
Expand Down
4 changes: 0 additions & 4 deletions moveit_core/transforms/src/transforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@
#include <geometric_shapes/check_isometry.h>
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <boost/algorithm/string/trim.hpp>

namespace moveit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#include <moveit/robot_model/robot_model.h>
#include <moveit/planning_scene/planning_scene.h>
#include <Eigen/Geometry.h>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <functional>

namespace kinematics_constraint_aware
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,8 @@
#include <moveit/kinematics_base/kinematics_base.h>
#include <moveit/robot_state/robot_state.h>
#include <Eigen/Geometry>
#if __has_include(<tf2_kdl/tf2_kdl.hpp>)
#include <tf2_kdl/tf2_kdl.hpp>
#else
#include <tf2_kdl/tf2_kdl.h>
#endif
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

using namespace moveit::core;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
#include <moveit/kdl_kinematics_plugin/kdl_kinematics_plugin.h>
#include <moveit/kdl_kinematics_plugin/chainiksolver_vel_mimic_svd.hpp>

#if __has_include(<tf2_kdl/tf2_kdl.hpp>)
#include <tf2_kdl/tf2_kdl.hpp>
#else
#include <tf2_kdl/tf2_kdl.h>
#endif
#include <tf2/transform_datatypes.h>

#include <kdl_parser/kdl_parser.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@
#include <kdl/chainfksolverpos_recursive.hpp>
#include <kdl/chainiksolverpos_lma.hpp>

#if __has_include(<tf2_kdl/tf2_kdl.hpp>)
#include <tf2_kdl/tf2_kdl.hpp>
#else
#include <tf2_kdl/tf2_kdl.h>
#endif
#include <kdl_parser/kdl_parser.hpp>
#include <kdl/frames_io.hpp>
#include <kdl/kinfam_io.hpp>
Expand Down
4 changes: 0 additions & 4 deletions moveit_kinematics/test/test_kinematics_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
#include <functional>
#include <pluginlib/class_loader.hpp>
#include <rclcpp/rclcpp.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

// MoveIt
#include <moveit/kinematics_base/kinematics_base.h>
Expand Down
12 changes: 0 additions & 12 deletions moveit_planners/chomp/chomp_motion_planner/src/chomp_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,9 @@
#include <chomp_motion_planner/chomp_planner.h>
#include <chomp_motion_planner/chomp_trajectory.h>
#include <moveit/robot_state/conversions.h>
#if __has_include(<tf2/LinearMath/Quaternion.hpp>)
#include <tf2/LinearMath/Quaternion.hpp>
#else
#include <tf2/LinearMath/Quaternion.h>
#endif
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#if __has_include(<tf2_geometry_msgs/tf2_geometry_msgs.hpp>)
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif

#include <chrono>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@

#include <moveit/ompl_interface/detail/ompl_constraints.h>

#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

static const rclcpp::Logger LOGGER = rclcpp::get_logger("moveit_planners_ompl.ompl_constraints");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@

#include <gtest/gtest.h>

#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif

#include <moveit/ompl_interface/planning_context_manager.h>
#include <moveit/planning_scene/planning_scene.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
#include <algorithm>
#include <memory>
#include <math.h>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#endif
#include <moveit/planning_interface/planning_interface.h>

namespace
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,9 @@

#include <moveit/planning_scene/planning_scene.h>
#include <tf2/LinearMath/Quaternion.h>

#include <tf2_eigen_kdl/tf2_eigen_kdl.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif

namespace
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,8 @@

#include <cassert>

#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#include <tf2_kdl/tf2_kdl.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_kdl/tf2_kdl.h>
#endif
#include <boost/range/combine.hpp>

#include <kdl/velocityprofile_trap.hpp>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,8 @@
#include <tf2_eigen_kdl/tf2_eigen_kdl.hpp>
#include <rclcpp/logger.hpp>
#include <rclcpp/logging.hpp>
#if __has_include(<tf2_eigen/tf2_eigen.hpp>)
#include <tf2_eigen/tf2_eigen.hpp>
#include <tf2_geometry_msgs/tf2_geometry_msgs.hpp>
#else
#include <tf2_eigen/tf2_eigen.h>
#include <tf2_geometry_msgs/tf2_geometry_msgs.h>
#endif

namespace pilz_industrial_motion_planner
{
Expand Down
Loading

0 comments on commit 0b5a7fa

Please sign in to comment.