Wheelie Class Reference

This is a class, which models an annular robot. More...

#include <wheelie.h>

Inherits DefaultWheelie.

Inheritance diagram for Wheelie:

Inheritance graph
[legend]
Collaboration diagram for Wheelie:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Wheelie (const OdeHandle &odeHandle, const OsgHandle &osgHandle, const WheelieConf &conf, const std::string &name)
virtual ~Wheelie ()
virtual void setMotors (const motor *motors, int motornumber)
 Reads the actual motor commands from an array, and sets all motors (forces) of the snake to this values.
virtual int getSensors (sensor *sensors, int sensornumber)
 Writes the sensor values to an array in the memory.
virtual int getSensorNumber ()
 returns number of sensors
virtual int getMotorNumber ()
 returns number of motors
virtual bool setParam (const paramkey &key, paramval val)

Detailed Description

This is a class, which models an annular robot.

It consists of a number of equal elements, each linked by a joint powered by 1 servo


Constructor & Destructor Documentation

Wheelie ( const OdeHandle odeHandle,
const OsgHandle osgHandle,
const WheelieConf conf,
const std::string &  name 
)

~Wheelie (  )  [virtual]


Member Function Documentation

virtual int getMotorNumber (  )  [inline, virtual]

returns number of motors

Implements DefaultWheelie.

virtual int getSensorNumber (  )  [inline, virtual]

returns number of sensors

Implements DefaultWheelie.

int getSensors ( sensor sensors,
int  sensornumber 
) [virtual]

Writes the sensor values to an array in the memory.

Parameters:
sensors pointer to the array
sensornumber length of the sensor array
Returns:
number of actually written sensors

Implements DefaultWheelie.

void setMotors ( const motor motors,
int  motornumber 
) [virtual]

Reads the actual motor commands from an array, and sets all motors (forces) of the snake to this values.

It is an linear allocation.

Parameters:
motors pointer to the array, motor values are scaled to [-1,1]
motornumber length of the motor array

Implements DefaultWheelie.

bool setParam ( const paramkey key,
paramval  val 
) [virtual]

Reimplemented from DefaultWheelie.


The documentation for this class was generated from the following files:
Generated on Fri Oct 30 16:29:03 2009 for Robot Simulator of the Robotics Group for Self-Organization of Control by  doxygen 1.4.7