25 #ifndef __SPHEREROBOT_H
26 #define __SPHEREROBOT_H
virtual ~Sphererobot()
Definition: sphererobot.cpp:51
virtual int getMotorNumberIntern()
Returns the number of motors used by the snake.
Definition: sphererobot.cpp:112
Data structure for accessing the ODE.
Definition: odehandle.h:44
Definition: sphererobot.h:61
virtual void update()
update the subcomponents
Definition: sphererobot.cpp:55
virtual void placeIntern(const osg::Matrix &pose)
sets the pose of the vehicle
Definition: sphererobot.cpp:96
virtual void destroy()
destroys vehicle and space
Definition: sphererobot.cpp:222
Matrixd Matrix
Definition: osgforwarddecl.h:47
double diameter
Definition: sphererobot.h:39
Definition: sphererobot.h:60
Definition: sphererobot.h:61
Definition: sphererobot.h:60
virtual void setMotorsIntern(const double *motors, int motornumber)
Reads the actual motor commands from an array, an sets all motors of the snake to this values...
Definition: sphererobot.cpp:88
virtual Primitive * getMainPrimitive() const
the main object of the robot, which is used for position and speed tracking
Definition: sphererobot.h:136
Data structure for accessing the OpenSceneGraph.
Definition: osghandle.h:79
virtual void create(const osg::Matrix &pose)
creates vehicle at desired pose
Definition: sphererobot.cpp:140
SliderServo * servo[3]
Definition: sphererobot.h:70
static SphererobotConf getDefaultConf()
Definition: sphererobot.h:82
SliderJoint * slider[3]
Definition: sphererobot.h:72
double slidermass
Definition: sphererobot.h:43
This is a class, which models a snake like robot.
Definition: sphererobot.h:57
virtual int getSensorsIntern(double *sensors, int sensornumber)
Writes the sensor values to an array in the memory.
Definition: sphererobot.cpp:71
Definition: sphererobot.h:60
Interface class for primitives represented in the physical and graphical world.
Definition: primitive.h:80
Definition: sphererobot.h:60
double hingeRange
Definition: sphererobot.h:47
Definition: sphererobot.h:61
std::list< SensorAttachment > sensors
Definition: oderobot.h:269
static const int sensorno
Definition: sphererobot.h:64
Definition: sphererobot.h:60
objects
Definition: sphererobot.h:60
OsgHandle osgHandle
Definition: oderobot.h:278
OdeHandle odeHandle
Definition: oderobot.h:277
Abstract class for ODE robots.
Definition: oderobot.h:64
double force
Definition: sphererobot.h:46
Definition: sphererobot.h:61
virtual int getSegmentsPosition(std::vector< Position > &poslist)
returns a vector with the positions of all segments of the robot
Definition: sphererobot.cpp:130
double pendulardiameter
Definition: sphererobot.h:41
double spheremass
Definition: sphererobot.h:40
Sphererobot(const OdeHandle &odeHandle, const OsgHandle &osgHandle, const SphererobotConf &conf, const std::string &name)
Definition: sphererobot.cpp:40
SphererobotConf conf
Definition: sphererobot.h:66
bool created
Definition: sphererobot.h:67
double pendularmass
Definition: sphererobot.h:42
double sliderrange
Definition: sphererobot.h:44
general servo motor to achieve position control
Definition: oneaxisservo.h:38
std::list< MotorAttachment > motors
Definition: oderobot.h:270
virtual int getSensorNumberIntern()
Returns the number of sensors used by the robot.
Definition: sphererobot.cpp:122
int c
Definition: hexapod.cpp:56
Definition: sphererobot.h:37
Joint * joint[6]
Definition: sphererobot.h:73