PassiveSphere Class Reference

(Passive) sphere as obstacle More...

#include <passivesphere.h>

Inherits AbstractObstacle.

Inheritance diagram for PassiveSphere:

Inheritance graph
[legend]
Collaboration diagram for PassiveSphere:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 PassiveSphere (const OdeHandle &odeHandle, const OsgHandle &osgHandle, double radius=0.3, double mass=1.0)
 Constructor.
virtual void setTexture (const std::string &filename)
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) sphere as obstacle
Examples:

template_sphererobot/main.cpp.


Constructor & Destructor Documentation

PassiveSphere ( const OdeHandle odeHandle,
const OsgHandle osgHandle,
double  radius = 0.3,
double  mass = 1.0 
) [inline]

Constructor.


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 &  filename  )  [inline, virtual]


The documentation for this class was generated from the following file:
Generated on Fri Oct 30 16:29:03 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7