38 #ifndef HPP_FCL_KDOP_H
39 #define HPP_FCL_KDOP_H
47 struct CollisionRequest;
95 Eigen::Array<FCL_REAL, N, 1>
dist_;
98 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
111 return (dist_ == other.
dist_).all();
116 return (dist_ != other.
dist_).any();
131 Vec3f* Q = NULL)
const;
144 return width() * width() + height() * height() + depth() * depth();
149 return (dist_.template head<3>() + dist_.template segment<3>(N / 2)) / 2;
KDOP class describes the KDOP collision structures. K is set as the template parameter,...
Definition: kDOP.h:92
#define HPP_FCL_DLLAPI
Definition: config.hh:88
#define HPP_FCL_THROW_PRETTY(message, exception)
Definition: fwd.hh:64
FCL_REAL distance(const KDOP< N > &other, Vec3f *P=NULL, Vec3f *Q=NULL) const
The distance between two KDOP<N>. Not implemented.
KDOP(const Vec3f &v)
Creating kDOP containing only one point.
FCL_REAL size() const
Size of the kDOP (used in BV_Splitter to order two kDOPs)
Definition: kDOP.h:143
KDOP< N > & operator+=(const KDOP< N > &other)
Merge two KDOPs.
bool operator==(const KDOP &other) const
Equality operator.
Definition: kDOP.h:110
Eigen::Array< FCL_REAL, N, 1 > dist_
Origin's distances to N KDOP planes.
Definition: kDOP.h:95
FCL_REAL & dist(short i)
Definition: kDOP.h:166
FCL_REAL volume() const
The (AABB) volume.
Definition: kDOP.h:162
FCL_REAL depth() const
The (AABB) depth.
Definition: kDOP.h:159
KDOP< N > operator+(const KDOP< N > &other) const
Create a KDOP by mergin two KDOPs.
bool overlap(const Matrix3f &R0, const Vec3f &T0, const AABB &b1, const AABB &b2)
Check collision between two aabbs, b1 is in configuration (R0, T0) and b2 is in identity.
FCL_REAL height() const
The (AABB) height.
Definition: kDOP.h:156
bool overlap(const KDOP< N > &other) const
Check whether two KDOPs overlap.
KDOP< N > & operator+=(const Vec3f &p)
Merge the point and the KDOP.
bool operator!=(const KDOP &other) const
Difference operator.
Definition: kDOP.h:115
bool overlap(const KDOP< N > &other, const CollisionRequest &request, FCL_REAL &sqrDistLowerBound) const
Check whether two KDOPs overlap.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW KDOP()
Creating kDOP containing nothing.
bool inside(const Vec3f &p) const
FCL_REAL width() const
The (AABB) width.
Definition: kDOP.h:153
KDOP(const Vec3f &a, const Vec3f &b)
Creating kDOP containing two points.
FCL_REAL dist(short i) const
Definition: kDOP.h:164
Vec3f center() const
The (AABB) center.
Definition: kDOP.h:148
KDOP< N > translate(const KDOP< N > &bv, const Vec3f &t)
translate the KDOP BV
Eigen::Matrix< FCL_REAL, 3, 3 > Matrix3f
Definition: data_types.h:71
Eigen::Matrix< FCL_REAL, 3, 1 > Vec3f
Definition: data_types.h:67
double FCL_REAL
Definition: data_types.h:66
Main namespace.
Definition: broadphase_bruteforce.h:44
request to the collision algorithm
Definition: collision_data.h:312