Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

OdometrySensor Struct Reference

Odometry is presently only used for the Create robot, which reports cumulative distances and angles. More...

#include <SensorInfo.h>

Inheritance diagram for OdometrySensor:

Detailed Description

Odometry is presently only used for the Create robot, which reports cumulative distances and angles.

Definition at line 173 of file SensorInfo.h.

List of all members.

Public Member Functions

 OdometrySensor ()
 constructor
 OdometrySensor (const OdometrySensor &s)
 copy constructor for cloning
virtual void declareValues (DynamicRobotState &values)
 Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.
virtual void reclaimValues (DynamicRobotState &values)
 Subclass should remove values added via previous declareValues().
virtual OdometrySensorclone () const __attribute__((warn_unused_result))
 clone implementation for Dictionary

Public Attributes

plist::Primitive< std::string > forwardSensorName
 Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.
plist::Primitive< std::string > leftSensorName
 Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.
plist::Primitive< std::string > upSensorName
 Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.
plist::Primitive< std::string > headingSensorName
 Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.
float lastX
 previous displacement along the X axis
float lastY
 previous displacement along the Y axis
float lastZ
 previous displacement along the Z axis
float lastHeading
 previous heading
float deltaX
 current displacement along the X axis
float deltaY
 current displacement along the Y axis
float deltaZ
 current displacement along the Z axis
float deltaHeading
 current heading change
plist::Primitive< floatcumX
 cumulative displacement along the X axis
plist::Primitive< floatcumY
 cumulative displacement along the Y axis
plist::Primitive< floatcumZ
 cumulative displacement along the Z axis
plist::Primitive< floatcumHeading
 cumulative heading change

Static Public Attributes

static const std::string autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<OdometrySensor>("Odometry")
 Provides registration with FamilyFactory<SensorInfo>

Protected Member Functions

void init ()
 performs common initialization

Constructor & Destructor Documentation

OdometrySensor::OdometrySensor (  ) 

constructor

Definition at line 175 of file SensorInfo.h.

OdometrySensor::OdometrySensor ( const OdometrySensor s  ) 

copy constructor for cloning

Definition at line 181 of file SensorInfo.h.


Member Function Documentation

OdometrySensor * OdometrySensor::clone (  )  const [virtual]

clone implementation for Dictionary

implements the clone function for dictionary

Implements SensorInfo.

Definition at line 12 of file SensorInfo.cc.

virtual void OdometrySensor::declareValues ( DynamicRobotState values  )  [virtual]

Subclass should add name/value pairs to the dictionary to allow variable number of values per Sensor, as well as fast filtering and serialization to subscribers.

A reference to a permanent plist::Primitive<float> instance should be added, this is how values are extracted from the sensor via this shared value.

Implements SensorInfo.

Definition at line 187 of file SensorInfo.h.

void OdometrySensor::init (  )  [protected]

performs common initialization

Reimplemented from SensorInfo.

Definition at line 227 of file SensorInfo.h.

Referenced by OdometrySensor().

virtual void OdometrySensor::reclaimValues ( DynamicRobotState values  )  [virtual]

Subclass should remove values added via previous declareValues().

Implements SensorInfo.

Definition at line 197 of file SensorInfo.h.


Member Data Documentation

const std::string OdometrySensor::autoRegister = FamilyFactory<SensorInfo>::getRegistry().registerType<OdometrySensor>("Odometry") [static]

Provides registration with FamilyFactory<SensorInfo>

Definition at line 223 of file SensorInfo.h.

cumulative heading change

Definition at line 222 of file SensorInfo.h.

Referenced by declareValues().

cumulative displacement along the X axis

Definition at line 219 of file SensorInfo.h.

Referenced by declareValues().

cumulative displacement along the Y axis

Definition at line 220 of file SensorInfo.h.

Referenced by declareValues().

cumulative displacement along the Z axis

Definition at line 221 of file SensorInfo.h.

Referenced by declareValues().

current heading change

Definition at line 218 of file SensorInfo.h.

current displacement along the X axis

Definition at line 215 of file SensorInfo.h.

current displacement along the Y axis

Definition at line 216 of file SensorInfo.h.

current displacement along the Z axis

Definition at line 217 of file SensorInfo.h.

Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.

Definition at line 207 of file SensorInfo.h.

Referenced by declareValues(), init(), and reclaimValues().

Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.

Definition at line 210 of file SensorInfo.h.

Referenced by declareValues(), init(), and reclaimValues().

previous heading

Definition at line 214 of file SensorInfo.h.

previous displacement along the X axis

Definition at line 211 of file SensorInfo.h.

previous displacement along the Y axis

Definition at line 212 of file SensorInfo.h.

previous displacement along the Z axis

Definition at line 213 of file SensorInfo.h.

Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.

Definition at line 208 of file SensorInfo.h.

Referenced by declareValues(), init(), and reclaimValues().

Name of the sensor instance, to match up with the a sensorNames[] in RobotInfo header.

Definition at line 209 of file SensorInfo.h.

Referenced by declareValues(), init(), and reclaimValues().


The documentation for this struct was generated from the following files:

Tekkotsu v5.1CVS
Generated Sat May 4 06:33:19 2013 by Doxygen 1.6.3