Drake
Element Class Reference

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

Inheritance diagram for Element:
Collaboration diagram for Element:

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 Elementclone () 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 RigidBodyget_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 GeometrygetGeometry () 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 &)
 
Elementoperator= (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< Geometrygeometry
 

Constructor & Destructor Documentation

Element ( const Eigen::Isometry3d &  T_element_to_local = Eigen::Isometry3d::Identity())

Here is the caller graph for this function:

Element ( const DrakeShapes::Geometry geometry,
const Eigen::Isometry3d &  T_element_to_local = Eigen::Isometry3d::Identity() 
)
virtual ~Element ( )
inlinevirtual

Reimplemented from Element.

Element ( const Element other)
protected

Member Function Documentation

Element * clone ( ) const
virtual

Reimplemented from Element.

Reimplemented in RigidBody::CollisionElement.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual bool CollidesWith ( const Element other) const
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.

Here is the call graph for this function:

Here is the caller graph for this function:

const RigidBody * get_body ( ) const

Returns a pointer to the const RigidBody to which this CollisionElement is attached.

Here is the caller graph for this function:

ElementId getId ( ) const
bool is_static ( )
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.

virtual bool isStatic ( ) const
inlinevirtual
void set_body ( const RigidBody body)

Sets the rigid body this collision element is attached to.

Here is the caller graph for this function:

void set_static ( )
inline

Flags this collision element to be static, i.e.

does not move.

See also
Element::is_static().

Here is the caller graph for this function:

Friends And Related Function Documentation

DRAKECOLLISION_EXPORT std::ostream& operator<< ( std::ostream &  out,
const Element ee 
)
friend

A toString method for this class.


The documentation for this class was generated from the following files: