|
Drake
|
#include <drake/systems/plants/collision/Element.h>


Public Member Functions | |
| Element (const Eigen::Isometry3d &T_element_to_local=Eigen::Isometry3d::Identity()) | |
| Element (const DrakeShapes::Geometry &geometry, const Eigen::Isometry3d &T_element_to_local=Eigen::Isometry3d::Identity()) | |
| virtual | ~Element () |
| virtual Element * | clone () const |
| ElementId | getId () const |
| virtual bool | isStatic () const |
| void | set_static () |
| Flags this collision element to be static, i.e. More... | |
| bool | is_static () |
Returns true if the shape does not move, false otherwise. More... | |
| virtual bool | CollidesWith (const Element *other) const |
| Returns true if this element should be checked for collisions with the other object. More... | |
| const RigidBody * | get_body () const |
| Returns a pointer to the const RigidBody to which this CollisionElement is attached. More... | |
| void | set_body (const RigidBody *body) |
| Sets the rigid body this collision element is attached to. More... | |
Public Member Functions inherited from Element | |
| Element (const Geometry &geometry, const Eigen::Isometry3d &T_element_to_local) | |
| Element (const Geometry &geometry) | |
| Element (const Eigen::Isometry3d &T_element_to_local) | |
| const Eigen::Isometry3d & | getWorldTransform () const |
| const Eigen::Isometry3d & | getLocalTransform () const |
| void | SetLocalTransform (const Eigen::Isometry3d &T_element_to_local) |
| virtual void | updateWorldTransform (const Eigen::Isometry3d &T_local_to_world) |
| Shape | getShape () const |
| void | setGeometry (const Geometry &geometry) |
| bool | hasGeometry () const |
| const Geometry & | getGeometry () const |
| void | getTerrainContactPoints (Eigen::Matrix3Xd &points) const |
Protected Member Functions | |
| Element (const Element &other) | |
Protected Member Functions inherited from Element | |
| virtual void | setWorldTransform (const Eigen::Isometry3d &T_elem_to_world) |
| Element (const Element &) | |
| Element & | operator= (const Element &) |
Friends | |
| DRAKECOLLISION_EXPORT std::ostream & | operator<< (std::ostream &, const Element &) |
| A toString method for this class. More... | |
Additional Inherited Members | |
Protected Attributes inherited from Element | |
| Eigen::Isometry3d | T_element_to_world |
| Eigen::Isometry3d | T_element_to_local |
| std::unique_ptr< Geometry > | geometry |
| Element | ( | const Eigen::Isometry3d & | T_element_to_local = Eigen::Isometry3d::Identity() | ) |

| Element | ( | const DrakeShapes::Geometry & | geometry, |
| const Eigen::Isometry3d & | T_element_to_local = Eigen::Isometry3d::Identity() |
||
| ) |
|
virtual |
Reimplemented from Element.
Reimplemented in RigidBody::CollisionElement.


|
inlinevirtual |
Returns true if this element should be checked for collisions with the other object.
CollidesWith should be symmetric: if A collides with B, B collides with A.
Reimplemented in RigidBody::CollisionElement.


| const RigidBody * get_body | ( | ) | const |
Returns a pointer to the const RigidBody to which this CollisionElement is attached.

| ElementId getId | ( | ) | const |
|
inline |
Returns true if the shape does not move, false otherwise.
For instance, a terrain commonly is a static collision element. This property could allow the collision dispatcher to perform certain optimizations not generally possible for moving objects.
|
inlinevirtual |
| void set_body | ( | const RigidBody * | body | ) |
Sets the rigid body this collision element is attached to.

|
inline |
Flags this collision element to be static, i.e.
does not move.

|
friend |
A toString method for this class.