VierBeiner Class Reference
robot that should look like a dog
More...
#include <vierbeiner.h>
Inherits lpzrobots::OdeRobot.
List of all members.
Detailed Description
robot that should look like a dog
sensors/motors: 0: neck, 1: tail 2,3,4,5 : hip: rh, lh, rf, lf 6,7,8,9 : knee: rh, lh, rf, lf 10,11 : ankle rh, lh
Constructor & Destructor Documentation
constructor of VierBeiner robot
- Parameters:
-
| odeHandle | data structure for accessing ODE |
| osgHandle | ata structure for accessing OSG |
| conf | configuration object |
Member Function Documentation
void create |
( |
const osg::Matrix & |
pose |
) |
[protected, virtual] |
creates vehicle at desired pose
creates vehicle at desired position
- Parameters:
-
| pose | 4x4 pose matrix |
| pos | struct Position with desired position |
ignore collision between box on top of dog and head and also between head and body
ignore collision between box on top of dog and tail
void destroy |
( |
|
) |
[protected, virtual] |
destroys vehicle and space
void doInternalStuff |
( |
GlobalData & |
global |
) |
[virtual] |
this function is called in each timestep.
It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
- Parameters:
-
| globalData | structure that contains global data from the simulation environment |
It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
- Parameters:
-
| global | structure that contains global data from the simulation environment |
Reimplemented from OdeRobot.
virtual Primitive* getMainPrimitive |
( |
|
) |
const [inline, virtual] |
the main object of the robot, which is used for position and speed tracking
Reimplemented from OdeRobot.
int getMotorNumber |
( |
|
) |
[virtual] |
int getSensorNumber |
( |
|
) |
[virtual] |
int getSensors |
( |
sensor * |
sensors, |
|
|
int |
sensornumber | |
|
) |
| | [virtual] |
returns actual sensorvalues
- Parameters:
-
| sensors | sensors scaled to [-1,1] |
| sensornumber | length of the sensor array |
- Returns:
- number of actually written sensors
Implements AbstractRobot.
void notifyOnChange |
( |
const paramkey & |
key |
) |
[virtual] |
Is called when a parameter was changes via setParam().
Note that it is not called of parameters of childs are changed, then there notifyOnChange() method is called. The key and of the changed parameter (use getParam() to retrieve its actual value). Overload this function when special actions have to be taken on parameter changes.
Reimplemented from Configurable.
sets the pose of the vehicle
- Parameters:
-
Implements OdeRobot.
void setMotors |
( |
const motor * |
motors, |
|
|
int |
motornumber | |
|
) |
| | [virtual] |
sets actual motorcommands
- Parameters:
-
| motors | motors scaled to [-1,1] |
| motornumber | length of the motor array |
set knee servos to set point 0 (spring emulation)
set ankle servos to set point 0 (spring emulation)
Implements AbstractRobot.
void update |
( |
|
) |
[virtual] |
updates the OSG nodes of the vehicle
updates the osg notes
Implements OdeRobot.
Member Data Documentation
The documentation for this class was generated from the following files: