24 #ifndef __VIERBEINER_H
25 #define __VIERBEINER_H
27 #include <ode_robots/oderobot.h>
76 const std::string& name);
virtual void doInternalStuff(GlobalData &globalData)
this function is called in each timestep.
Definition: vierbeiner.cpp:174
double kneePower
spring strength in the knees
Definition: vierbeiner.h:47
bool legBodyCollisions
legs and body collide
Definition: vierbeiner.h:55
virtual ~VierBeiner()
Definition: vierbeiner.h:78
double hipJointLimit
angle range for legs
Definition: vierbeiner.h:46
Data structure for accessing the ODE.
Definition: odehandle.h:44
Primitive * trunk
Definition: vierbeiner.h:167
double legmass
Definition: vierbeiner.h:161
virtual void update()
updates the OSG nodes of the vehicle
Definition: vierbeiner.cpp:156
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: vierbeiner.cpp:144
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: vierbeiner.cpp:180
bool created
Definition: vierbeiner.h:163
charArray paramkey
Definition: avrtypes.h:36
std::list< Primitive * > legparts
Definition: vierbeiner.h:177
VierBeiner(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const VierBeinerConf &conf, const std::string &name)
constructor of VierBeiner robot
Definition: vierbeiner.cpp:44
Primitive * eye_r_trans
Definition: vierbeiner.h:169
bool drawstupidface
Definition: vierbeiner.h:53
double anklePower
spring strength in the ankles
Definition: vierbeiner.h:50
std::vector< OneAxisServo * > kneeservos
Definition: vierbeiner.h:173
double sensor
Definition: types.h:29
double kneeDamping
damping in the knees
Definition: vierbeiner.h:49
double hipPower
maximal force for at hip joint motors
Definition: vierbeiner.h:44
Primitive * ear_l_trans
Definition: vierbeiner.h:169
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
static VierBeinerConf getDefaultConf()
Definition: vierbeiner.h:80
Primitive * tail
Definition: vierbeiner.h:167
double hipDamping
damping of hio joint servos
Definition: vierbeiner.h:45
double kneeJointLimit
angle range for knees
Definition: vierbeiner.h:48
Primitive * ear_r_trans
Definition: vierbeiner.h:169
double dampingFactor
global factor for damping parameters
Definition: vierbeiner.h:43
robot that should look like a dog
Definition: vierbeiner.h:66
double size
scaling factor for robot (diameter of body)
Definition: vierbeiner.h:37
virtual int getSensorsIntern(sensor *sensors, int sensornumber)
returns actual sensorvalues
Definition: vierbeiner.cpp:120
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
bool useBigBox
use big box on back or not
Definition: vierbeiner.h:54
Data structure holding all essential global information.
Definition: globaldata.h:57
std::vector< OneAxisServo * > hipservos
Definition: vierbeiner.h:172
std::vector< OneAxisServo * > headtailservos
Definition: vierbeiner.h:175
virtual Primitive * getMainPrimitive() const
the main object of the robot, which is used for position and speed tracking
Definition: vierbeiner.h:148
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
Primitive * headtrans
Definition: vierbeiner.h:167
Primitive * mouth_trans
Definition: vierbeiner.h:169
virtual void destroy()
destroys vehicle and space
Definition: vierbeiner.cpp:433
VierBeinerConf conf
Definition: vierbeiner.h:160
bool hippo
"dog" looks like a hippopotamus
Definition: vierbeiner.h:52
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
double mass
chassis mass
Definition: vierbeiner.h:40
virtual void notifyOnChange(const paramkey &key)
Is called when a parameter was changes via setParam().
Definition: vierbeiner.cpp:488
double powerFactor
global factor for power parameters
Definition: vierbeiner.h:42
Abstract class for ODE robots.
Definition: oderobot.h:64
Definition: vierbeiner.h:35
virtual int getMotorNumberIntern()
returns number of motors
Definition: vierbeiner.cpp:71
double legLength
length of the legs in units of size
Definition: vierbeiner.h:38
double relLegmass
relative overall leg mass
Definition: vierbeiner.h:41
std::vector< OneAxisServo * > ankleservos
Definition: vierbeiner.h:174
int legNumber
number of snake elements
Definition: vierbeiner.h:39
Primitive * bigboxtransform
Definition: vierbeiner.h:167
Primitives objects
list of objects (should be populated by subclasses)
Definition: oderobot.h:265
virtual int getSensorNumberIntern()
returns number of sensors
Definition: vierbeiner.cpp:111
virtual void setMotorsIntern(const double *motors, int motornumber)
sets actual motorcommands
Definition: vierbeiner.cpp:79
Primitive * eye_l_trans
Definition: vierbeiner.h:169
std::list< MotorAttachment > motors
Definition: oderobot.h:270
int c
Definition: hexapod.cpp:56
Primitive * neck
Definition: vierbeiner.h:167
double ankleDamping
damping in the ankles
Definition: vierbeiner.h:51