PassiveCapsule Class Reference

(Passive) capsule as obstacle More...

#include <passivecapsule.h>

Inherits lpzrobots::AbstractObstacle.

Collaboration diagram for PassiveCapsule:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 PassiveCapsule (const OdeHandle &odeHandle, const OsgHandle &osgHandle, float radius=1.0, float height=1.0, double mass=1.0)
 Constructor.
 ~PassiveCapsule ()
virtual void update ()
 update position of box
virtual void setTexture (const std::string &filename)
 assigns a texture to the all primitives of this obstactle with repeat -1,-1
virtual void setPose (const osg::Matrix &pose)
 sets position of the obstacle and creates/recreates obstacle if necessary
virtual PrimitivegetMainPrimitive () const
 return the "main" primitive of the obtactle. The meaning of "main" is arbitrary

Protected Member Functions

virtual void create ()
 overload this function to create the obstactle. All primitives should go into the list "obst"

Detailed Description

(Passive) capsule as obstacle


Constructor & Destructor Documentation

PassiveCapsule ( const OdeHandle odeHandle,
const OsgHandle osgHandle,
float  radius = 1.0,
float  height = 1.0,
double  mass = 1.0 
) [inline]

Constructor.

~PassiveCapsule (  )  [inline]

Member Function Documentation

virtual void create (  )  [inline, protected, virtual]

overload this function to create the obstactle. All primitives should go into the list "obst"

Implements AbstractObstacle.

virtual Primitive* getMainPrimitive (  )  const [inline, virtual]

return the "main" primitive of the obtactle. The meaning of "main" is arbitrary

Implements AbstractObstacle.

virtual void setPose ( const osg::Matrix pose  )  [inline, virtual]

sets position of the obstacle and creates/recreates obstacle if necessary

Implements AbstractObstacle.

virtual void setTexture ( const std::string &  texturefilename  )  [inline, virtual]

assigns a texture to the all primitives of this obstactle with repeat -1,-1

See also:
Primitive::setTexture()

Reimplemented from AbstractObstacle.

virtual void update (  )  [inline, virtual]

update position of box

Reimplemented from AbstractObstacle.


The documentation for this class was generated from the following file:
Generated on Thu Jun 28 14:48:42 2012 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.6.3