|
hpp-constraints 9.0.2
Definition of basic geometric constraints for motion planning
|
#include <hpp/constraints/convex-shape.hh>
Public Member Functions | |
| ConvexShape (const std::vector< vector3_t > &pts, JointPtr_t joint=JointPtr_t()) | |
| ConvexShape (const coal::TriangleP &t, const JointPtr_t &joint=JointPtr_t()) | |
| ConvexShape (const vector3_t &p0, const vector3_t &p1, const vector3_t &p2, const JointPtr_t &joint=JointPtr_t()) | |
| ConvexShape (const ConvexShape &t) | |
| void | reverse () |
| vector3_t | intersectionLocal (const vector3_t &A, const vector3_t &u) const |
| bool | isInsideLocal (const vector3_t &Ap) const |
| As isInside but consider A as expressed in joint frame. | |
| value_type | distanceLocal (const vector3_t &a) const |
| const vector3_t & | planeXaxis () const |
| Return the X axis of the plane in the joint frame. | |
| const vector3_t & | planeYaxis () const |
| const Transform3s & | positionInJoint () const |
| Transform of the shape in the joint frame. | |
| bool | operator== (ConvexShape const &other) const |
| bool | operator!= (ConvexShape const &other) const |
Public Attributes | |
| std::vector< vector3_t > | Pts_ |
| The points in the joint frame. It is constant. | |
| size_t | shapeDimension_ |
| vector3_t | C_ |
| the center in the joint frame. It is constant. | |
| vector3_t | N_ |
| the normal to the shape in the joint frame. It is constant. | |
| std::vector< vector3_t > | Ns_ |
| std::vector< vector3_t > | Us_ |
| vector_t | Ls_ |
| Transform3s | MinJoint_ |
| JointPtr_t | joint_ |
|
inline |
Represent a convex shape
| pts | a sequence of points lying in a plane. The convex shape is obtained by connecting consecutive points (in a circular way) |
|
inline |
|
inline |
This constructor is required for compatibility with deprecated Triangle constructor.
|
inline |
|
inline |
Return the shortest distance from a point to the shape A negative value means the point is inside the shape
| a | a point already in the plane containing the convex shape, and expressed in the local frame. |
|
inline |
Intersection with a line defined by a point and a vector.
| A,u | point and vector expressed in the local frame. |
|
inline |
As isInside but consider A as expressed in joint frame.
|
inline |
|
inline |
|
inline |
Return the X axis of the plane in the joint frame.
|
inline |
Return the Y axis of the plane in the joint frame The Y axis is aligned with \( Pts_[1] - Pts_[0] \)
|
inline |
Transform of the shape in the joint frame.
|
inline |
| vector3_t hpp::constraints::ConvexShape::C_ |
the center in the joint frame. It is constant.
| JointPtr_t hpp::constraints::ConvexShape::joint_ |
| vector_t hpp::constraints::ConvexShape::Ls_ |
| Transform3s hpp::constraints::ConvexShape::MinJoint_ |
| vector3_t hpp::constraints::ConvexShape::N_ |
the normal to the shape in the joint frame. It is constant.
| std::vector<vector3_t> hpp::constraints::ConvexShape::Ns_ |
Ns_ and Us_ are unit vector, in the plane containing the shape, expressed in the joint frame. Ns_[i] is normal to edge i, pointing inside. Ns_[i] is a vector director of edge i.
| std::vector<vector3_t> hpp::constraints::ConvexShape::Pts_ |
The points in the joint frame. It is constant.
| size_t hpp::constraints::ConvexShape::shapeDimension_ |
| std::vector<vector3_t> hpp::constraints::ConvexShape::Us_ |