gjk_libccd.cpp
Go to the documentation of this file.
1 /*
2  * Software License Agreement (BSD License)
3  *
4  * Copyright (c) 2011-2014, Willow Garage, Inc.
5  * Copyright (c) 2014-2016, Open Source Robotics Foundation
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary formdouble, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer in the documentation and/or other materials provided
17  * with the distribution.
18  * * Neither the name of Open Source Robotics Foundation nor the names of its
19  * contributors may be used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIEdouble, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  */
35 
39 
40 namespace fcl
41 {
42 
43 namespace detail
44 {
45 
46 //==============================================================================
47 template
48 class GJKInitializer<double, Cylinder<double>>;
49 
50 //==============================================================================
51 template
52 class GJKInitializer<double, Sphere<double>>;
53 
54 //==============================================================================
55 template
56 class GJKInitializer<double, Ellipsoid<double>>;
57 
58 //==============================================================================
59 template
60 class GJKInitializer<double, Box<double>>;
61 
62 //==============================================================================
63 template
64 class GJKInitializer<double, Capsule<double>>;
65 
66 //==============================================================================
67 template
68 class GJKInitializer<double, Cone<double>>;
69 
70 //==============================================================================
71 template
72 class GJKInitializer<double, Convex<double>>;
73 
74 //==============================================================================
75 template
76 void* triCreateGJKObject(
77  const Vector3d& P1, const Vector3d& P2, const Vector3d& P3);
78 
79 //==============================================================================
80 template
81 void* triCreateGJKObject(
82  const Vector3d& P1,
83  const Vector3d& P2,
84  const Vector3d& P3,
85  const Transform3d& tf);
86 
87 //==============================================================================
88 template
89 bool GJKCollide(
90  void* obj1,
91  ccd_support_fn supp1,
92  ccd_center_fn cen1,
93  void* obj2,
94  ccd_support_fn supp2,
95  ccd_center_fn cen2,
96  unsigned int max_iterations,
97  double tolerance,
98  Vector3d* contact_points,
99  double* penetration_depth,
100  Vector3d* normal);
101 
102 //==============================================================================
103 template
104 bool GJKDistance(
105  void* obj1,
106  ccd_support_fn supp1,
107  void* obj2,
108  ccd_support_fn supp2,
109  unsigned int max_iterations,
110  double tolerance,
111  double* dist,
112  Vector3d* p1,
113  Vector3d* p2);
114 
115 template
116 bool GJKSignedDistance(
117  void* obj1,
118  ccd_support_fn supp1,
119  void* obj2,
120  ccd_support_fn supp2,
121  unsigned int max_iterations,
122  double tolerance,
123  double* dist,
124  Vector3d* p1,
125  Vector3d* p2);
126 
127 } // namespace detail
128 } // namespace fcl
obj2
CollisionObject< S > * obj2
Definition: broadphase_SaP.h:211
fcl::detail::GJKCollide
template bool GJKCollide(void *obj1, ccd_support_fn supp1, ccd_center_fn cen1, void *obj2, ccd_support_fn supp2, ccd_center_fn cen2, unsigned int max_iterations, double tolerance, Vector3d *contact_points, double *penetration_depth, Vector3d *normal)
fcl::Transform3d
Transform3< double > Transform3d
Definition: types.h:117
obj1
CollisionObject< S > * obj1
Definition: broadphase_SaP.h:210
gjk_libccd-inl.h
fcl::detail::triCreateGJKObject
template void * triCreateGJKObject(const Vector3d &P1, const Vector3d &P2, const Vector3d &P3)
Vector3d
fcl::Vector3d Vector3d
Definition: test_broadphase_dynamic_AABB_tree.cpp:48
tolerance
S tolerance()
Definition: test_fcl_geometric_shapes.cpp:87
fcl::detail::GJKDistance
template bool GJKDistance(void *obj1, ccd_support_fn supp1, void *obj2, ccd_support_fn supp2, unsigned int max_iterations, double tolerance, double *dist, Vector3d *p1, Vector3d *p2)
fcl::detail::GJKSignedDistance
template bool GJKSignedDistance(void *obj1, ccd_support_fn supp1, void *obj2, ccd_support_fn supp2, unsigned int max_iterations, double tolerance, double *dist, Vector3d *p1, Vector3d *p2)
fcl
Main namespace.
Definition: broadphase_bruteforce-inl.h:45


fcl
Author(s):
autogenerated on Tue Dec 5 2023 03:40:48