#include <hpp/constraints/convex-shape.hh>
Public Member Functions | |
void | updateToCurrentTransform (const ConvexShape &cs) |
Compute center and normal in world frame. More... | |
void | updateToCurrentTransform (const ConvexShape &cs, const pinocchio::DeviceData &d) |
Compute center and normal in world frame Thread safe version. More... | |
template<bool WorldFrame> | |
void | _recompute (const ConvexShape &cs) |
vector3_t | intersection (const vector3_t &A, const vector3_t &u) const |
Intersection with a line defined by a point and a vector. More... | |
bool | isInside (const ConvexShape &cs, const vector3_t &A, const vector3_t &u) const |
Check whether the intersection of the line defined by A and u onto the plane containing the triangle is inside the triangle. More... | |
bool | isInside (const ConvexShape &cs, const vector3_t &Ap) const |
Check whether the point As in world frame is inside the triangle. More... | |
Transform3f | alignedPositionInJoint (const ConvexShape &cs, vector3_t yaxis) const |
value_type | distance (const ConvexShape &cs, vector3_t a) const |
See ConvexShape::distance. More... | |
Public Attributes | |
vector3_t | normal_ |
vector3_t | center_ |
Transform3f | oMj_ |
|
inline |
References hpp::constraints::ConvexShape::C_, and hpp::constraints::ConvexShape::N_.
|
inline |
yaxis | vector in world frame to which we should try to align |
References Eigen::assert(), hpp::constraints::ConvexShape::C_, hpp::constraints::ConvexShape::MinJoint_, hpp::constraints::ConvexShape::N_, and hpp::constraints::ConvexShape::shapeDimension_.
|
inline |
See ConvexShape::distance.
a | a point already in the plane containing the convex shape, and expressed in the global frame. |
References hpp::constraints::ConvexShape::distanceLocal(), and hpp::constraints::ConvexShape::joint_.
|
inline |
Intersection with a line defined by a point and a vector.
A,u | point and vector expressed in the world frame. |
References hpp::constraints::linePlaneIntersection().
|
inline |
Check whether the intersection of the line defined by A and u onto the plane containing the triangle is inside the triangle.
A,u | point and vector in world frame defining the line \( A + t*u \) |
|
inline |
Check whether the point As in world frame is inside the triangle.
References hpp::constraints::ConvexShape::isInsideLocal(), and hpp::constraints::ConvexShape::joint_.
|
inline |
Compute center and normal in world frame.
References hpp::constraints::ConvexShape::joint_.
|
inline |
Compute center and normal in world frame Thread safe version.
References hpp::constraints::ConvexShape::joint_.
vector3_t hpp::constraints::ConvexShapeData::center_ |
vector3_t hpp::constraints::ConvexShapeData::normal_ |
Transform3f hpp::constraints::ConvexShapeData::oMj_ |