#include <simplecomponent.h>
Inherits Component.
Inheritance diagram for SimpleComponent:
Public Member Functions | |
SimpleComponent (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const ComponentConf &conf) | |
~SimpleComponent () | |
virtual void | update () |
update the OSG notes here | |
virtual void | place (const Pos &pos) |
sets the vehicle to position pos | |
virtual void | place (const osg::Matrix &pose) |
sets the pose of the vehicle | |
virtual bool | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
checks for internal collisions and treats them. | |
virtual void | doInternalStuff (const GlobalData &globalData) |
this function is called in each timestep. | |
virtual Position | getPosition () const |
returns position of the object | |
virtual osg::Vec3 | getPositionbetweenComponents (Component *component) |
This is only a simple function, calculating the coordinates of the point exactly between two directly connected components. | |
virtual bool | setSimplePrimitive (Primitive *newprimitive) |
Sets the reference to the Primitive for the component, but only if there is no robot assigned to the component. | |
virtual Primitive * | getMainPrimitive () const |
return reference to the simple Primitive, or to the main Primitive of the robot assigend to the component. | |
Private Attributes | |
Primitive * | simplePrimitive |
The pysical object that belongs to this component class is a Primitive object.
|
|
|
|
|
checks for internal collisions and treats them. In case of a treatment return true (collision will be ignored by other objects and the default routine) else false (collision is passed to other objects and (if not treated) to the default routine). Reimplemented from Component.
|
|
this function is called in each timestep. It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
Reimplemented from Component.
|
|
return reference to the simple Primitive, or to the main Primitive of the robot assigend to the component. If nothimng is assigned, NULL is returned. Implements Component.
|
|
returns position of the object
Implements Component.
|
|
This is only a simple function, calculating the coordinates of the point exactly between two directly connected components.
Reimplemented from Component.
|
|
sets the pose of the vehicle
Implements OdeRobot.
|
|
sets the vehicle to position pos
Implements Component.
|
|
Sets the reference to the Primitive for the component, but only if there is no robot assigned to the component. Overwriting an existing Primitive reference is possible, also to set it NULL, and then set a reference to a Primitive with setSimplePrimitive ( .. ). But first the Primitive reference should be saved elsewhere or it won't be updated graficaly
|
|
update the OSG notes here
Implements Component.
|
|
|