Public Member Functions | |
GeomIndex | addGeometryObject (GeometryObject object, const Model &model, const bool autofillJointParent=false) |
Add a geometry object to a GeometryModel. More... | |
GeomIndex | getGeometryId (const std::string &name) const |
Return the index of a GeometryObject given by its name. More... | |
bool | existGeometryName (const std::string &name) const |
Check if a GeometryObject given by its name exists. More... | |
PINOCCHIO_DEPRECATED const std::string & | getGeometryName (const GeomIndex index) const |
Get the name of a GeometryObject given by its index. More... | |
void | addCollisionPair (const CollisionPair &pair) |
Add a collision pair into the vector of collision_pairs. The method check before if the given CollisionPair is already included. More... | |
void | addAllCollisionPairs () |
Add all possible collision pairs. More... | |
void | removeCollisionPair (const CollisionPair &pair) |
Remove if exists the CollisionPair from the vector collision_pairs. More... | |
void | removeAllCollisionPairs () |
Remove all collision pairs from collisionPairs. Same as collisionPairs.clear(). | |
bool | existCollisionPair (const CollisionPair &pair) const |
Check if a collision pair exists in collisionPairs. See also findCollisitionPair(const CollisionPair & pair). More... | |
PairIndex | findCollisionPair (const CollisionPair &pair) const |
Return the index of a given collision pair in collisionPairs. More... | |
Public Attributes | |
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Index | ngeoms |
The number of GeometryObjects. | |
container::aligned_vector< GeometryObject > | geometryObjects |
Vector of GeometryObjects used for collision computations. | |
std::vector< CollisionPair > | collisionPairs |
Vector of collision pairs. | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const GeometryModel &model_geom) |
Definition at line 38 of file multibody/geometry.hpp.
|
inline |
Add all possible collision pairs.
Definition at line 186 of file multibody/geometry.hxx.
References GeometryModel::addCollisionPair(), GeometryModel::geometryObjects, GeometryModel::ngeoms, and GeometryModel::removeAllCollisionPairs().
|
inline |
Add a collision pair into the vector of collision_pairs. The method check before if the given CollisionPair is already included.
[in] | pair | The CollisionPair to add. |
Definition at line 180 of file multibody/geometry.hxx.
References GeometryModel::collisionPairs, GeometryModel::existCollisionPair(), and GeometryModel::ngeoms.
Referenced by GeometryModel::addAllCollisionPairs().
|
inline |
Add a geometry object to a GeometryModel.
[in] | object | Object |
[in] | model | Corresponding model, used to assert the attributes of object. |
[in] | autofillJointParent | if true, set jointParent from frameParent. |
Definition at line 54 of file multibody/geometry.hxx.
References Model::frames, GeometryModel::geometryObjects, and GeometryModel::ngeoms.
|
inline |
Check if a collision pair exists in collisionPairs. See also findCollisitionPair(const CollisionPair & pair).
[in] | pair | The CollisionPair. |
Definition at line 213 of file multibody/geometry.hxx.
References GeometryModel::collisionPairs.
Referenced by GeometryModel::addCollisionPair().
|
inline |
Check if a GeometryObject given by its name exists.
[in] | name | Name of the GeometryObject |
Definition at line 86 of file multibody/geometry.hxx.
References GeometryModel::geometryObjects, se3::name(), and GeometryObject::name.
|
inline |
Return the index of a given collision pair in collisionPairs.
[in] | pair | The CollisionPair. |
Definition at line 220 of file multibody/geometry.hxx.
References GeometryModel::collisionPairs.
|
inline |
Return the index of a GeometryObject given by its name.
[in] | name | Name of the GeometryObject |
Definition at line 74 of file multibody/geometry.hxx.
References GeometryModel::geometryObjects, se3::name(), and GeometryObject::name.
|
inline |
Get the name of a GeometryObject given by its index.
[in] | index | Index of the GeometryObject |
Definition at line 94 of file multibody/geometry.hxx.
References GeometryModel::geometryObjects.
|
inline |
Remove if exists the CollisionPair from the vector collision_pairs.
[in] | pair | The CollisionPair to remove. |
Definition at line 201 of file multibody/geometry.hxx.
References GeometryModel::collisionPairs, and GeometryModel::ngeoms.