moveit2
The MoveIt Motion Planning Framework for ROS 2.
fcl_compat.h
Go to the documentation of this file.
1 /*********************************************************************
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2018, Hamburg University.
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted provided that the following conditions
9  * are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  * notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above
14  * copyright notice, this list of conditions and the following
15  * disclaimer in the documentation and/or other materials provided
16  * with the distribution.
17  * * Neither the name of Willow Garage nor the names of its
18  * contributors may be used to endorse or promote products derived
19  * from this software without specific prior written permission.
20  *
21  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
24  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
25  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
26  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
27  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
31  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32  * POSSIBILITY OF SUCH DAMAGE.
33  *********************************************************************/
34 
35 /* Author: Benjamin Scholz */
36 
37 #pragma once
38 
39 #include <fcl/config.h>
40 
41 #define FCL_VERSION_CHECK(major, minor, patch) ((major << 16) | (minor << 8) | (patch))
42 #define MOVEIT_FCL_VERSION FCL_VERSION_CHECK(FCL_MAJOR_VERSION, FCL_MINOR_VERSION, FCL_PATCH_VERSION)
43 
44 #if (MOVEIT_FCL_VERSION < FCL_VERSION_CHECK(0, 6, 0))
45 namespace fcl
46 {
47 class CollisionGeometry;
48 using CollisionGeometryd = fcl::CollisionGeometry;
49 class CollisionObject;
50 using CollisionObjectd = fcl::CollisionObject;
51 class BroadPhaseCollisionManager;
52 using BroadPhaseCollisionManagerd = fcl::BroadPhaseCollisionManager;
53 class Transform3f;
54 using Transform3d = fcl::Transform3f;
55 class Contact;
56 using Contactd = fcl::Contact;
57 class CostSource;
58 using CostSourced = fcl::CostSource;
59 class CollisionRequest;
60 using CollisionRequestd = fcl::CollisionRequest;
61 class CollisionResult;
62 using CollisionResultd = fcl::CollisionResult;
63 class DistanceRequest;
64 using DistanceRequestd = fcl::DistanceRequest;
65 class DistanceResult;
66 using DistanceResultd = fcl::DistanceResult;
67 class Plane;
68 using Planed = fcl::Plane;
69 class Sphere;
70 using Sphered = fcl::Sphere;
71 class Box;
72 using Boxd = fcl::Box;
73 class Cylinder;
74 using Cylinderd = fcl::Cylinder;
75 class Cone;
76 using Coned = fcl::Cone;
77 
78 namespace details
79 {
80 struct sse_meta_f4;
81 template <typename T>
82 struct Vec3Data;
83 } // namespace details
84 template <typename T>
85 class Vec3fX;
86 #if FCL_HAVE_SSE
88 #else
90 #endif
91 
92 class OcTree;
93 using OcTreed = fcl::OcTree;
94 class OBBRSS;
95 using OBBRSSd = fcl::OBBRSS;
96 class DynamicAABBTreeCollisionManager;
97 using DynamicAABBTreeCollisionManagerd = fcl::DynamicAABBTreeCollisionManager;
98 } // namespace fcl
99 #endif
Definition: fcl_compat.h:46
fcl::DynamicAABBTreeCollisionManager DynamicAABBTreeCollisionManagerd
Definition: fcl_compat.h:97
fcl::CollisionObject CollisionObjectd
Definition: fcl_compat.h:50
fcl::DistanceResult DistanceResultd
Definition: fcl_compat.h:66
fcl::BroadPhaseCollisionManager BroadPhaseCollisionManagerd
Definition: fcl_compat.h:52
fcl::Sphere Sphered
Definition: fcl_compat.h:70
fcl::DistanceRequest DistanceRequestd
Definition: fcl_compat.h:64
fcl::OBBRSS OBBRSSd
Definition: fcl_compat.h:95
fcl::CostSource CostSourced
Definition: fcl_compat.h:58
fcl::OcTree OcTreed
Definition: fcl_compat.h:93
fcl::Box Boxd
Definition: fcl_compat.h:72
fcl::CollisionGeometry CollisionGeometryd
Definition: fcl_compat.h:48
fcl::Contact Contactd
Definition: fcl_compat.h:56
fcl::Transform3f Transform3d
Definition: fcl_compat.h:54
fcl::CollisionResult CollisionResultd
Definition: fcl_compat.h:62
fcl::Cylinder Cylinderd
Definition: fcl_compat.h:74
fcl::CollisionRequest CollisionRequestd
Definition: fcl_compat.h:60
fcl::Plane Planed
Definition: fcl_compat.h:68
fcl::Cone Coned
Definition: fcl_compat.h:76