#include <sphererobot3masses.h>
Inherits OdeRobot.
Inherited by Barrel2Masses.
Inheritance diagram for Sphererobot3Masses:


Public Types | |
| enum | objects { Base, Pendular1, Pendular2, Pendular3, Last } |
| enum for the objects of the robot More... | |
Public Member Functions | |
| Sphererobot3Masses (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const Sphererobot3MassesConf &conf, const std::string &name, double transparency=0.5) | |
| constructor | |
| virtual | ~Sphererobot3Masses () |
| virtual void | update () |
| update the OSG notes here | |
| virtual void | place (const osg::Matrix &pose) |
| sets the pose of the vehicle | |
| virtual bool | collisionCallback (void *data, dGeomID o1, dGeomID o2) |
| This is the collision handling function for sphere robots. | |
| virtual void | doInternalStuff (const GlobalData &globalData) |
| this function is called in each timestep. | |
| virtual int | getSensors (sensor *sensors, int sensornumber) |
| Writes the sensor values to an array in the memory. | |
| virtual void | setMotors (const motor *motors, int motornumber) |
| sets actual motorcommands | |
| virtual int | getMotorNumber () |
| Returns the number of motors used by the snake. | |
| virtual int | getSensorNumber () |
| Returns the number of sensors used by the robot. | |
| virtual Primitive * | getMainPrimitive () const |
| the main object of the robot, which is used for position and speed tracking | |
Static Public Member Functions | |
| Sphererobot3MassesConf | getDefaultConf () |
| default configuration | |
Protected Member Functions | |
| Sphererobot3Masses (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const Sphererobot3MassesConf &conf, const std::string &name, const std::string &revision, double transparency) | |
| constructor | |
| void | init () |
| initialises some internal variables | |
| virtual void | create (const osg::Matrix &pose) |
| creates vehicle at desired position | |
| virtual void | destroy () |
| destroys vehicle and space | |
Protected Attributes | |
| unsigned int | numberaxis |
| Primitive * | object [Last] |
| SliderServo * | servo [servono] |
| SliderJoint * | joint [servono] |
| OSGPrimitive * | axis [servono] |
| Sphererobot3MassesConf | conf |
| RaySensorBank | irSensorBank |
| a collection of ir sensors | |
| double | transparency |
| bool | created |
Static Protected Attributes | |
| const int | servono = 3 |
This robot was inspired by Julius Popp (http://sphericalrobots.com)
|
|
enum for the objects of the robot
|
|
||||||||||||||||||||||||
|
constructor
|
|
||||||||||||||||||||||||||||
|
constructor
|
|
|
|
|
||||||||||||||||
|
This is the collision handling function for sphere robots. This overwrides the function collisionCallback of the class robot.
Implements OdeRobot.
|
|
|
creates vehicle at desired position
Reimplemented in Barrel2Masses.
|
|
|
destroys vehicle and space
|
|
|
this function is called in each timestep. It should perform robot-internal checks, like space-internal collision detection, sensor resets/update etc.
Implements OdeRobot.
|
|
|
default configuration
Reimplemented in Barrel2Masses.
|
|
|
the main object of the robot, which is used for position and speed tracking
Implements OdeRobot.
|
|
|
Returns the number of motors used by the snake.
Implements AbstractRobot.
|
|
|
Returns the number of sensors used by the robot.
Implements AbstractRobot.
|
|
||||||||||||
|
Writes the sensor values to an array in the memory.
Implements AbstractRobot.
Reimplemented in Barrel2Masses.
|
|
|
initialises some internal variables
|
|
|
sets the pose of the vehicle
Implements OdeRobot.
|
|
||||||||||||
|
sets actual motorcommands
Implements AbstractRobot.
|
|
|
update the OSG notes here
Implements OdeRobot.
|
|
|
|
|
|
|
|
|
|
|
|
a collection of ir sensors
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8