#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 pos desired position of the robot | |
| 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. | |
| SimpleComponent | ( | const OdeHandle & | odeHandle, | |
| const OsgHandle & | osgHandle, | |||
| const ComponentConf & | conf | |||
| ) |
| ~SimpleComponent | ( | ) |
| bool collisionCallback | ( | void * | data, | |
| dGeomID | o1, | |||
| dGeomID | o2 | |||
| ) | [virtual] |
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.
| void doInternalStuff | ( | const GlobalData & | globalData | ) | [virtual] |
this function is called in each timestep.
It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
| globalData | structure that contains global data from the simulation environment |
Reimplemented from Component.
| Primitive * getMainPrimitive | ( | ) | const [virtual] |
| Position getPosition | ( | ) | const [virtual] |
| void place | ( | const osg::Matrix & | pose | ) | [virtual] |
| void place | ( | const Pos & | pos | ) | [virtual] |
sets the vehicle to position pos pos desired position of the robot
| pos | desired position of the robot |
Implements Component.
| bool setSimplePrimitive | ( | Primitive * | newprimitive | ) | [virtual] |
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
| void update | ( | ) | [virtual] |
1.4.7