26 #ifndef __MUSCLEDARM_H
27 #define __MUSCLEDARM_H
30 #include <selforg/configurable.h>
40 #define includeMusclesGraphics false
106 const std::string& name);
185 static void mycallback(
void *data, dGeomID o1, dGeomID o2);
190 void BodyCreate(
int n, dMass m, dReal x, dReal y, dReal z,
191 dReal qx, dReal qy, dReal qz, dReal qangle);
virtual void setMotorsIntern(const double *motors, int motornumber)
sets actual motorcommands
Definition: muscledarm.cpp:101
Definition: muscledarm.h:67
double upperArm_width
Definition: muscledarm.h:234
double mainMuscle_width
Definition: muscledarm.h:239
static MuscledArmConf getDefaultConf()
Definition: muscledarm.h:108
Data structure for accessing the ODE.
Definition: odehandle.h:44
Definition: muscledarm.h:60
Definition: muscledarm.h:79
double force_[6]
Definition: muscledarm.h:103
void BodyCreate(int n, dMass m, dReal x, dReal y, dReal z, dReal qx, dReal qy, dReal qz, dReal qangle)
double max_r
Definition: muscledarm.h:230
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: muscledarm.cpp:162
Definition: muscledarm.h:83
Definition: muscledarm.h:91
Matrixd Matrix
Definition: osgforwarddecl.h:47
Definition: muscledarm.h:57
double mainMuscle_length
Definition: muscledarm.h:240
virtual void doInternalStuff(GlobalData &globalData)
this function is called in each timestep.
Definition: muscledarm.cpp:186
double max_l
Definition: muscledarm.h:229
bool jointActuator
Definition: muscledarm.h:47
Definition: muscledarm.h:71
Definition: muscledarm.h:57
virtual int getSegmentsPosition(std::vector< Position > &poslist)
returns a vector with the positions of all segments of the robot
Definition: muscledarm.cpp:176
double joint_offset
Definition: muscledarm.h:238
double dGeomGetPositionAll(dGeomID basis, int para)
Joint * joint[NUMJoints]
Definition: muscledarm.h:199
virtual Primitive * getMainPrimitive() const
the main object of the robot, which is used for position and speed tracking
Definition: muscledarm.h:174
bool muscleLengthSensors
Definition: muscledarm.h:46
double dBodyGetPositionAll(dBodyID basis, int para)
double base_length
Definition: muscledarm.h:233
Definition: muscledarm.h:58
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
double lowerArm_width
Definition: muscledarm.h:236
Definition: muscledarm.h:69
Definition: muscledarm.h:70
Definition: muscledarm.h:84
Definition: muscledarm.h:95
double SOCKEL_HOEHE
Definition: muscledarm.h:215
double smallMuscle_width
Definition: muscledarm.h:241
int sensorno
Definition: muscledarm.h:218
double SOCKEL_MASSE
Definition: muscledarm.h:216
Definition: position.h:30
Definition: muscledarm.h:96
bool jointAngleRateSensors
Definition: muscledarm.h:45
double paramval
Definition: configurable.h:88
virtual int getSensorsIntern(double *sensors, int sensornumber)
returns actual sensorvalues
Definition: muscledarm.cpp:128
Definition: muscledarm.h:93
Definition: muscledarm.h:78
Definition: muscledarm.h:90
MuscledArm(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const MuscledArmConf &conf, const std::string &name)
Definition: muscledarm.cpp:35
virtual int getSensorNumberIntern()
returns number of sensors
Definition: muscledarm.h:141
static const int armanzahl
Definition: muscledarm.h:195
Definition: muscledarm.h:62
Definition: muscledarm.h:85
Definition: muscledarm.h:74
Definition: muscledarm.h:81
Definition: muscledarm.h:87
double base_width
Definition: muscledarm.h:232
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
bool jointAngleSensors
Definition: muscledarm.h:44
Data structure holding all essential global information.
Definition: globaldata.h:57
int motorno
Definition: muscledarm.h:219
joints
Definition: muscledarm.h:73
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
virtual int getMotorNumberIntern()
returns number of motors
Definition: muscledarm.h:147
virtual ~MuscledArm()
Definition: muscledarm.h:117
double smallMuscle_length
Definition: muscledarm.h:242
MuscledArmConf conf
Definition: muscledarm.h:193
dSpaceID parentspace
Definition: muscledarm.h:225
double upperArm_length
Definition: muscledarm.h:235
double SOCKEL_LAENGE
Definition: muscledarm.h:213
static void mycallback(void *data, dGeomID o1, dGeomID o2)
Definition: muscledarm.cpp:240
Definition: muscledarm.h:61
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
Definition: muscledarm.h:86
paramval print
Definition: muscledarm.h:206
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: muscledarm.cpp:273
Definition: muscledarm.h:59
Definition: muscledarm.h:94
Definition: muscledarm.h:77
Definition: muscledarm.h:98
Definition: muscledarm.h:63
Abstract class for ODE robots.
Definition: oderobot.h:64
int segmentsno
Definition: muscledarm.h:208
Definition: muscledarm.h:88
Definition: muscledarm.h:66
double SOCKEL_BREITE
Definition: muscledarm.h:214
Definition: muscledarm.h:73
Definition: muscledarm.h:52
Definition: muscledarm.h:68
paramval factorSensors
Definition: muscledarm.h:204
Definition: muscledarm.h:43
double min_l
Definition: muscledarm.h:230
virtual void destroy()
destroys vehicle and space
Definition: muscledarm.cpp:615
bool created
Definition: muscledarm.h:221
parts
Definition: muscledarm.h:57
Definition: muscledarm.h:99
int printed
Definition: muscledarm.h:227
paramval factorMotors
Definition: muscledarm.h:203
Definition: muscledarm.h:82
Definition: muscledarm.h:76
double lowerArm_length
Definition: muscledarm.h:237
Definition: muscledarm.h:65
Definition: muscledarm.h:57
virtual Primitive * getMainObject() const
Definition: muscledarm.cpp:630
double gelenkabstand
Definition: muscledarm.h:212
std::list< MotorAttachment > motors
Definition: oderobot.h:270
double min_r
Definition: muscledarm.h:230
paramval damping
Definition: muscledarm.h:205
Position old_dist[NUMParts]
Definition: muscledarm.h:201
Definition: muscledarm.h:64