Go to the documentation of this file.
43 #include <boost/math/constants/constants.hpp>
47 struct CollisionRequest;
53 struct COAL_DLLAPI
RSS {
54 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
80 return axes == other.
axes && Tr == other.
Tr &&
81 length[0] == other.
length[0] && length[1] == other.
length[1] &&
89 bool contain(
const Vec3s& p)
const;
97 sqrDistLowerBound = sqrt(-1);
111 *
this = *
this + other;
116 RSS operator+(
const RSS& other)
const;
120 return (std::sqrt(length[0] * length[0] + length[1] * length[1]) +
138 return (length[0] * length[1] * 2 * radius +
139 4 * boost::math::constants::pi<CoalScalar>() * radius * radius *
157 const RSS& b1,
const RSS& b2,
Vec3s* P = NULL,
168 const RSS& b2,
const CollisionRequest& request,
RSS & operator+=(const RSS &other)
Merge the RSS and another RSS.
Eigen::Matrix< CoalScalar, 3, 1 > Vec3s
const Vec3s & center() const
The RSS center.
CoalScalar depth() const
Depth of the RSS.
CoalScalar radius
Radius of sphere summed with rectangle to form RSS.
CoalScalar width() const
Width of the RSS.
CoalScalar length[2]
Side lengths of rectangle.
COAL_DLLAPI CoalScalar distance(const Matrix3s &R0, const Vec3s &T0, const kIOS &b1, const kIOS &b2, Vec3s *P=NULL, Vec3s *Q=NULL)
Approximate distance between two kIOS bounding volumes.
bool overlap(const RSS &other, RSS &) const
Check collision between two RSS and return the overlap part. For RSS, we return nothing,...
CoalScalar volume() const
Volume of the RSS.
bool overlap(const RSS &other, const CollisionRequest &, CoalScalar &sqrDistLowerBound) const
Not implemented.
bool operator==(const RSS &other) const
Equality operator.
request to the collision algorithm
COAL_DLLAPI bool overlap(const Matrix3s &R0, const Vec3s &T0, const AABB &b1, const AABB &b2)
Check collision between two aabbs, b1 is in configuration (R0, T0) and b2 is in identity.
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Matrix3s axes
Orientation of RSS. axis[i] is the ith column of the orientation matrix for the RSS; it is also the i...
Eigen::Matrix< CoalScalar, 3, 3 > Matrix3s
CoalScalar height() const
Height of the RSS.
Vec3s Tr
Origin of the rectangle in RSS.
bool operator!=(const RSS &other) const
Difference operator.
CoalScalar size() const
Size of the RSS (used in BV_Splitter to order two RSSs)
hpp-fcl
Author(s):
autogenerated on Sat Nov 23 2024 03:44:59