25 #ifndef __ROBOTCHAIN_H
26 #define __ROBOTCHAIN_H
28 #include <ode_robots/oderobot.h>
virtual Primitive * getMainPrimitive() const
return the primitive of the robot that is used for tracking and camera following
Definition: robotchain.cpp:197
Data structure for accessing the ODE.
Definition: odehandle.h:44
bool useIR
use infrared sensors?
Definition: robotchain.h:42
Matrixd Matrix
Definition: osgforwarddecl.h:47
virtual void setMotorsIntern(const double *motors, int motornumber)
overload this function in a subclass to do specific sensor handling, not needed for generic motors ...
Definition: robotchain.cpp:54
charArray paramkey
Definition: avrtypes.h:36
virtual int getMotorNumberIntern()
overload this function in a subclass to specific the number of custom sensors
Definition: robotchain.cpp:46
double size
scaling factor for robot (size of one robot)
Definition: robotchain.h:34
int numRobots
number of robots in the chain
Definition: robotchain.h:38
std::string color
color of robots
Definition: robotchain.h:41
double sensor
Definition: types.h:29
virtual void create(const osg::Matrix &pose)
Definition: robotchain.cpp:130
RobotChainConf conf
Definition: robotchain.h:118
double speed
Definition: robotchain.h:37
RobotChain(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const RobotChainConf &conf, const std::string &name)
constructor of uwo robot
Definition: robotchain.cpp:39
double wheelSlip
Definition: robotchain.h:40
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void notifyOnChange(const paramkey &key)
Is called when a parameter was changes via setParam().
Definition: robotchain.cpp:206
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: robotchain.cpp:109
double distance
distance between robots
Definition: robotchain.h:35
virtual void doInternalStuff(GlobalData &globalData)
this function is called in each simulation timestep (always after control).
Definition: robotchain.cpp:123
virtual int getSensorNumberIntern()
overload this function in a subclass to specific the number of custom sensors
Definition: robotchain.cpp:66
std::vector< OdeRobot * > robots
Definition: robotchain.h:122
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
Data structure holding all essential global information.
Definition: globaldata.h:57
double massFactorMain
massfactor of main robot
Definition: robotchain.h:44
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
int mainRobot
robot index that is returned by getMainPrimitive() (-1 for middle robot, then massFactorMain and forc...
Definition: robotchain.h:43
double force
Definition: robotchain.h:36
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
virtual void destroy()
destroys vehicle and space
Definition: robotchain.cpp:186
static RobotChainConf getDefaultConf()
Definition: robotchain.h:67
Abstract class for ODE robots.
Definition: oderobot.h:64
virtual int getSensorsIntern(sensor *sensors, int sensornumber)
overload this function in a subclass to do specific sensor handling, not needed for generic sensors ...
Definition: robotchain.cpp:74
Definition: robotchain.h:32
double forceMain
factor of main robot
Definition: robotchain.h:45
Chain of robots.
Definition: robotchain.h:51
virtual int getIRSensorNum()
Definition: robotchain.cpp:179
bool created
Definition: robotchain.h:120
virtual ~RobotChain()
Definition: robotchain.h:65
virtual void update()
updates the OSG nodes of the vehicle
Definition: robotchain.cpp:114
std::list< MotorAttachment > motors
Definition: oderobot.h:270
int c
Definition: hexapod.cpp:56
double massFactor
Definition: robotchain.h:39