Specialization of fcl::CollisionObject to add a name to objects. More...
#include <hpp/pinocchio/collision-object.hh>
Public Types | |
typedef std::vector< GeomIndex > | GeomIndexList |
typedef std::map< JointIndex, GeomIndexList > | ObjectVec_t |
Public Member Functions | |
CollisionObject (DevicePtr_t device, const GeomIndex geom) | |
Constructor for object of the device. More... | |
CollisionObject (GeomModelPtr_t geomModel, GeomDataPtr_t geomData, const GeomIndex geom) | |
Constructor for obstacles (object attached to the environment) It is not attached to a Device. More... | |
const std::string & | name () const |
const GeometryObject & | pinocchio () const |
Access to pinocchio object. More... | |
GeometryObject & | pinocchio () |
FclConstCollisionObjectPtr_t | fcl (const GeomData &data) const |
Access to fcl object. More... | |
FclCollisionObjectPtr_t | fcl (GeomData &data) const |
FclConstCollisionObjectPtr_t | fcl () const |
FclCollisionObjectPtr_t | fcl () |
FclCollisionObjectPtr_t | fcl (DeviceData &d) const |
Returns the FCL collision object. More... | |
const JointIndex & | jointIndex () const |
Get joint index. More... | |
JointPtr_t | joint () |
Get joint. More... | |
JointConstPtr_t | joint () const |
const Transform3f & | positionInJointFrame () const |
Return the position in the joint frame. More... | |
const fcl::Transform3f & | getFclTransform () const |
Return transform of the fcl object. More... | |
const Transform3f & | getTransform () const |
const Transform3f & | getTransform (DeviceData &d) const |
const GeomIndex & | indexInModel () const |
void | move (const Transform3f &position) |
Move object to given position. More... | |
Protected Member Functions | |
void | selfAssert () const |
Assert that the members of the struct are valid (no null pointer, etc). More... | |
Specialization of fcl::CollisionObject to add a name to objects.
Objects moved by a robot joint. They can collide each other and distance computation can be computed between them.
typedef std::vector<GeomIndex> hpp::pinocchio::CollisionObject::GeomIndexList |
typedef std::map< JointIndex, GeomIndexList > hpp::pinocchio::CollisionObject::ObjectVec_t |
hpp::pinocchio::CollisionObject::CollisionObject | ( | DevicePtr_t | device, |
const GeomIndex | geom | ||
) |
Constructor for object of the device.
hpp::pinocchio::CollisionObject::CollisionObject | ( | GeomModelPtr_t | geomModel, |
GeomDataPtr_t | geomData, | ||
const GeomIndex | geom | ||
) |
Constructor for obstacles (object attached to the environment) It is not attached to a Device.
FclConstCollisionObjectPtr_t hpp::pinocchio::CollisionObject::fcl | ( | const GeomData & | data | ) | const |
Access to fcl object.
FclCollisionObjectPtr_t hpp::pinocchio::CollisionObject::fcl | ( | GeomData & | data | ) | const |
FclConstCollisionObjectPtr_t hpp::pinocchio::CollisionObject::fcl | ( | ) | const |
FclCollisionObjectPtr_t hpp::pinocchio::CollisionObject::fcl | ( | ) |
FclCollisionObjectPtr_t hpp::pinocchio::CollisionObject::fcl | ( | DeviceData & | d | ) | const |
Returns the FCL collision object.
d | Ignored if this object represents an obstacle. Otherwise, a DeviceData for the internal device. |
const fcl::Transform3f& hpp::pinocchio::CollisionObject::getFclTransform | ( | ) | const |
Return transform of the fcl object.
const Transform3f& hpp::pinocchio::CollisionObject::getTransform | ( | ) | const |
const Transform3f& hpp::pinocchio::CollisionObject::getTransform | ( | DeviceData & | d | ) | const |
|
inline |
JointPtr_t hpp::pinocchio::CollisionObject::joint | ( | ) |
Get joint.
JointConstPtr_t hpp::pinocchio::CollisionObject::joint | ( | ) | const |
|
inline |
Get joint index.
void hpp::pinocchio::CollisionObject::move | ( | const Transform3f & | position | ) |
Move object to given position.
const std::string& hpp::pinocchio::CollisionObject::name | ( | ) | const |
const GeometryObject& hpp::pinocchio::CollisionObject::pinocchio | ( | ) | const |
Access to pinocchio object.
GeometryObject& hpp::pinocchio::CollisionObject::pinocchio | ( | ) |
const Transform3f& hpp::pinocchio::CollisionObject::positionInJointFrame | ( | ) | const |
Return the position in the joint frame.
|
protected |
Assert that the members of the struct are valid (no null pointer, etc).