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

RobotPose Class Reference

A Pose2D with validity. More...

#include <RobotPose.h>

Inheritance diagram for RobotPose:

Inheritance graph
[legend]
Collaboration diagram for RobotPose:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 RobotPose ()
 Constructor.

const RobotPoseoperator= (const RobotPose &other)
 RobotPose (const Pose2D &otherPose)
 Cast Contructor.

const RobotPoseoperator= (const Pose2D &other)
 Assignment operator.

void setPose (const Pose2D &p)
 The function sets the current pose.

void setValidity (const double v)
 The function sets the validity of the current pose.

void setFrameNumber (unsigned long frameNumber)
 The function sets the frame number of the current pose.

const Pose2D getPose () const
 The function returns the current pose.

const double & getValidity () const
 The frame number when perceived.


Public Attributes

unsigned long frameNumber
 Speed measured by perceived distance to goal.

double speedbyDistanceToGoal
 The distance to the field border.

double distanceToBorder
 The angle to the field border.

double angleToBorder

Private Attributes

double validity
 The validity of the robot pose.


Detailed Description

A Pose2D with validity.

Definition at line 19 of file RobotPose.h.


Constructor & Destructor Documentation

RobotPose::RobotPose  )  [inline]
 

Constructor.

Definition at line 28 of file RobotPose.h.

RobotPose::RobotPose const Pose2D otherPose  )  [inline]
 

Cast Contructor.

Definition at line 41 of file RobotPose.h.


Member Function Documentation

const RobotPose& RobotPose::operator= const RobotPose other  )  [inline]
 

Definition at line 30 of file RobotPose.h.

References frameNumber, and validity.

const RobotPose& RobotPose::operator= const Pose2D other  )  [inline]
 

Assignment operator.

Parameters:
other The other Pose2D that is assigned to this one
Returns:
A reference to this object after the assignment.

Reimplemented from Pose2D.

Definition at line 46 of file RobotPose.h.

void RobotPose::setPose const Pose2D p  )  [inline]
 

The function sets the current pose.

Parameters:
p The pose.

Definition at line 57 of file RobotPose.h.

Referenced by NoOdometrySelfLocator::execute(), and GT2004SelfLocator::execute().

void RobotPose::setValidity const double  v  )  [inline]
 

The function sets the validity of the current pose.

Parameters:
v The validity.

Definition at line 65 of file RobotPose.h.

Referenced by SpecialPerceptSelfLocator::execute(), GT2004SelfLocator::execute(), and operator>>().

void RobotPose::setFrameNumber unsigned long  frameNumber  )  [inline]
 

The function sets the frame number of the current pose.

Definition at line 70 of file RobotPose.h.

Referenced by SpecialPerceptSelfLocator::execute(), OdometrySelfLocator::execute(), NoOdometrySelfLocator::execute(), and GT2004SelfLocator::execute().

const Pose2D RobotPose::getPose  )  const [inline]
 

The function returns the current pose.

Returns:
The pose.
Attention:
this function is obsolete and should not be used any more

instead this object IS a pose instead of owning one

Definition at line 80 of file RobotPose.h.

Referenced by GT2004PlayersLocator::addOppPlayerPercepts(), GT2004PlayersLocator::addOwnPlayerPercepts(), GT2004ObstaclesLocator::addPSDPercept(), AngleSymbols::drawAngleShownByLeds(), GT2004PlayersLocator::execute(), KickLogger::execute(), GT2004BasicBehaviorGoToPointAndAvoidObstacles::execute(), GT2004BasicBehaviorTurnAroundPoint::execute(), GT2004BasicBehaviorGoToBallWithoutTurning::execute(), GT2004BasicBehaviorGoToBall::execute(), Geometry::fieldCoord2Relative(), GT2004StrategySymbols::getGoalieMaxPositionSpeed(), BallSymbols::getKnownAngle(), BallSymbols::getKnownDistance(), BallSymbols::getSeenAngle(), GT2004HeadControlSymbols::getSeenDistance(), BallSymbols::getSeenDistance(), BallSymbols::getSeenDistanceX(), BallSymbols::getSeenDistanceY(), KickSelectionSymbols::retrieveKick(), GT2004BallLocator::setBallStateV2(), GTStandardConverter::setData(), ObstaclesSymbols::update(), and BallSymbols::update().

const double& RobotPose::getValidity  )  const [inline]
 

The frame number when perceived.

Definition at line 88 of file RobotPose.h.

Referenced by GT2004PlayersLocator::addOppPlayerPercepts(), GT2004PlayersLocator::addOwnPlayerPercepts(), GT2004BasicBehaviorMeasureGT2004ParametersBlind::execute(), GT2004BasicBehaviorMeasureGT2004Parameters::execute(), GT2004BasicBehaviorEvolveOmniParameters::execute(), operator<<(), RobotPoseSymbols::registerSymbols(), GTStandardConverter::setData(), and EvolutionSymbols::update().


Member Data Documentation

double RobotPose::validity [private]
 

The validity of the robot pose.

Definition at line 22 of file RobotPose.h.

Referenced by operator=().

unsigned long RobotPose::frameNumber
 

Speed measured by perceived distance to goal.

Definition at line 93 of file RobotPose.h.

Referenced by GT2004BasicBehaviorMeasureGT2004ParametersBlind::execute(), GT2004BasicBehaviorMeasureGT2004Parameters::execute(), operator=(), and LogPlayer::saveCSV().

double RobotPose::speedbyDistanceToGoal
 

The distance to the field border.

Definition at line 96 of file RobotPose.h.

Referenced by SpecialPerceptSelfLocator::execute().

double RobotPose::distanceToBorder
 

The angle to the field border.

Definition at line 99 of file RobotPose.h.

Referenced by DistanceToBorderEstimator::execute(), and RobotPoseSymbols::registerSymbols().

double RobotPose::angleToBorder
 

Definition at line 100 of file RobotPose.h.

Referenced by DistanceToBorderEstimator::execute(), and RobotPoseSymbols::getAngleToBorder().


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