Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

SensorData Class Reference

A class representing a sensor data vector. More...

#include <SensorData.h>

List of all members.

Public Types

enum  sensors {
  neckTilt, headPan, headTilt,
  headBack, headFront, psd,
  mouth, chin, legFL1,
  legFL2, legFL3, pawFL,
  legHL1, legHL2, legHL3,
  pawHL, legFR1, legFR2,
  legFR3, pawFR, legHR1,
  legHR2, legHR3, pawHR,
  tailPan, tailTilt, thermo,
  back, accelerationX, accelerationY,
  accelerationZ, numOfSensor_ERS210, head = numOfSensor_ERS210,
  headPsdFar, bodyPsd, numOfSensor_ERS7,
  headTilt210 = neckTilt, headPan210 = headPan, headRoll210 = headTilt,
  headPsdNear = psd, backF = headFront, backM = back,
  backR = headBack, wlan = thermo
}

Public Member Functions

 SensorData ()
 constructs a SensorData.

 ~SensorData ()
 deconstructs a SensorData.

void init ()

Static Public Member Functions

const char * getSensorName (sensors sensor)
 returns the name of a sensor

const char * getSensorNameERS210 (sensors sensor)
 returns the name of a sensor of the ERS-210

const char * getSensorNameERS7 (sensors sensor)
 returns the name of a sensor of the ERS-7


Public Attributes

long data [numOfSensor_ERS7]
 The sensor data value.

long refValue [numOfSensor_ERS7]
 Sensor data reference values.

unsigned long frameNumber
 The frame number of that sensor data.


Detailed Description

A class representing a sensor data vector.

Definition at line 15 of file SensorData.h.


Member Enumeration Documentation

enum SensorData::sensors
 

Enumeration values:
neckTilt 
headPan 
headTilt 
headBack 
headFront 
psd 
mouth 
chin 
legFL1 
legFL2 
legFL3 
pawFL 
legHL1 
legHL2 
legHL3 
pawHL 
legFR1 
legFR2 
legFR3 
pawFR 
legHR1 
legHR2 
legHR3 
pawHR 
tailPan 
tailTilt 
thermo 
back 
accelerationX 
accelerationY 
accelerationZ 
numOfSensor_ERS210 
head 
headPsdFar 
bodyPsd 
numOfSensor_ERS7 
headTilt210 
headPan210 
headRoll210 
headPsdNear 
backF 
backM 
backR 
wlan 

Definition at line 28 of file SensorData.h.


Constructor & Destructor Documentation

SensorData::SensorData  ) 
 

constructs a SensorData.

Definition at line 9 of file SensorData.cpp.

References init().

Here is the call graph for this function:

SensorData::~SensorData  ) 
 

deconstructs a SensorData.

Definition at line 14 of file SensorData.cpp.


Member Function Documentation

void SensorData::init  ) 
 

Definition at line 18 of file SensorData.cpp.

References accelerationZ, numOfSensor_ERS7, and refValue.

Referenced by SensorData().

const char* SensorData::getSensorName sensors  sensor  )  [inline, static]
 

returns the name of a sensor

Definition at line 81 of file SensorData.h.

References getSensorNameERS7(), headBack, headFront, psd, and thermo.

Here is the call graph for this function:

const char* SensorData::getSensorNameERS210 sensors  sensor  )  [inline, static]
 

returns the name of a sensor of the ERS-210

Definition at line 97 of file SensorData.h.

References accelerationX, accelerationY, accelerationZ, headBack, headFront, pawFL, pawFR, pawHL, pawHR, psd, and thermo.

Referenced by getSensorNameERS7().

const char* SensorData::getSensorNameERS7 sensors  sensor  )  [inline, static]
 

returns the name of a sensor of the ERS-7

Definition at line 137 of file SensorData.h.

References backF, backM, backR, bodyPsd, getSensorNameERS210(), headPsdFar, headPsdNear, and wlan.

Referenced by getSensorName().

Here is the call graph for this function:


Member Data Documentation

long SensorData::data[numOfSensor_ERS7]
 

The sensor data value.

Definition at line 69 of file SensorData.h.

Referenced by GT2004SensorDataProcessor::buildCameraMatrix(), GT2004SensorDataProcessor::buildPSDPercept(), Kinematics::calcAbsRoll(), Kinematics::calcHeadHeight(), Kinematics::calcRelativeRobotVertices(), GT2004SensorDataProcessor::calculateBodyPostureFromAccelerationSensors(), GT2004SensorDataProcessor::detectMouthState(), GT2004SensorDataProcessor::detectSwitches(), BB2004Calibrator::evolve(), GT2004SensorDataProcessor::execute(), ObstacleAvoiderOnGreenFieldERS7::execute(), ObstacleAvoiderOnGreenField::execute(), GT2004HeadControl::execute(), GT2004CollisionDetector::execute(), GT2004BasicBehaviorDogAsJoystick::execute(), GT2004GetupEngine::executeParameterized(), GT2004SensorDataProcessor::SensorDataRingBuffer::getAverage(), RobotStateSymbols::getBallUnderHead(), OpenChallengeSymbols::getSensorAccelerationX(), OpenChallengeSymbols::getSensorAccelerationY(), OpenChallengeSymbols::getSensorAccelerationZ(), GT2004HeadControl::getSensorHeadAngles(), OpenChallengeSymbols::getSensorPSDFar(), OpenChallengeSymbols::getSensorPSDNear(), GT2004HeadControl::GT2004HeadControl(), GT2004HeadControl::headPanIsLeft(), GT2004HeadControl::headPositionDistanceToActualPosition(), GT2004HeadPathPlanner::headPositionReached(), GT2004SensorDataProcessor::SensorDataRingBuffer::interpolate(), BB2004InvKinWalkingEngine::learn(), operator>>(), GT2004BehaviorControl::postExecute(), DebugMotionControl::setStayAsForcedValue(), MotionStabilizer::stabilize(), WakeUpEngine::start(), OpenChallengeSymbols::update(), GT2004SensorDataProcessor::SensorDataRingBuffer::updateAverage(), BB2004InvKinWalkingEngine::updateOdometry(), and GT2004MotionControl::wagTail().

long SensorData::refValue[numOfSensor_ERS7]
 

Sensor data reference values.

Only valid for joint sensors.

Definition at line 73 of file SensorData.h.

Referenced by GT2004CollisionDetector::execute(), init(), and operator>>().

unsigned long SensorData::frameNumber
 

The frame number of that sensor data.

Definition at line 76 of file SensorData.h.

Referenced by GT2004SensorDataProcessor::buildCameraMatrix(), GT2004SensorDataProcessor::buildPSDPercept(), Kinematics::calcRelativeRobotVertices(), GT2004SensorDataProcessor::execute(), GT2004CollisionDetector::execute(), GT2004SensorDataProcessor::SensorDataRingBuffer::interpolate(), BB2004InvKinWalkingEngine::learn(), and operator>>().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:11:42 2004 for GT2004 by doxygen 1.3.6