|
Public Member Functions |
| MuscledArm (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const MuscledArmConf &conf, const std::string &name) |
virtual | ~MuscledArm () |
virtual void | update () |
| draws the arm
|
virtual void | place (const osg::Matrix &pose) |
| sets the pose of the vehicle
|
virtual int | getSensors (sensor *sensors, int sensornumber) |
| returns actual sensorvalues
|
virtual void | setMotors (const motor *motors, int motornumber) |
| sets actual motorcommands
|
virtual int | getSensorNumber () |
| returns number of sensors
|
virtual int | getMotorNumber () |
| returns number of motors
|
virtual int | getSegmentsPosition (std::vector< Position > &poslist) |
| returns a vector with the positions of all segments of the robot
|
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.
|
paramlist | getParamList () const |
| The list of all parameters with there value as allocated lists.
|
virtual paramval | getParam (const paramkey &key) const |
| returns the value of the requested parameter or 0 (+ error message to stderr) if unknown.
|
virtual bool | setParam (const paramkey &key, paramval val) |
| sets the value of the given parameter or does nothing if unknown.
|
virtual Primitive * | getMainObject () const |
Static Public Member Functions |
MuscledArmConf | getDefaultConf () |
Public Attributes |
double | force_ [6] |
Protected Member Functions |
virtual Primitive * | getMainPrimitive () const |
| the main object of the robot, which is used for position and speed tracking
|
virtual void | create (const osg::Matrix &pose) |
| creates arm at desired position
|
virtual void | destroy () |
| destroys vehicle and space
|
double | dBodyGetPositionAll (dBodyID basis, int para) |
double | dGeomGetPositionAll (dGeomID basis, int para) |
void | BodyCreate (int n, dMass m, dReal x, dReal y, dReal z, dReal qx, dReal qy, dReal qz, dReal qangle) |
Static Protected Member Functions |
void | mycallback (void *data, dGeomID o1, dGeomID o2) |
Protected Attributes |
MuscledArmConf | conf |
Primitive * | object [NUMParts] |
Joint * | joint [NUMJoints] |
Position | old_dist [NUMParts] |
paramval | factorMotors |
paramval | factorSensors |
paramval | damping |
paramval | print |
int | segmentsno |
double | gelenkabstand |
double | SOCKEL_LAENGE |
double | SOCKEL_BREITE |
double | SOCKEL_HOEHE |
double | SOCKEL_MASSE |
int | sensorno |
int | motorno |
bool | created |
dSpaceID | parentspace |
int | printed |
double | max_l |
double | max_r |
double | min_l |
double | min_r |
double | base_width |
double | base_length |
double | upperArm_width |
double | upperArm_length |
double | lowerArm_width |
double | lowerArm_length |
double | joint_offset |
double | mainMuscle_width |
double | mainMuscle_length |
double | smallMuscle_width |
double | smallMuscle_length |
Static Protected Attributes |
const int | armanzahl = 3 |