Flag Class Reference

#include <LandmarksPercept.h>

Inheritance diagram for Flag:

ConditionalBoundary Boundary< double > List of all members.

Public Types

 pinkAboveYellow
 pinkAboveSkyblue
 yellowAbovePink
 skyblueAbovePink
 numberOfFlagTypes
enum  FlagType {
  pinkAboveYellow, pinkAboveSkyblue, yellowAbovePink, skyblueAbovePink,
  numberOfFlagTypes
}

Public Member Functions

colorClass getLowerColor () const
colorClass getUpperColor () const

Public Attributes

FlagType type
Vector2< double > position
double distanceValidity
double angleValidity
double distance
double angle

Detailed Description

The class represents a flag.

Definition at line 106 of file LandmarksPercept.h.


Member Enumeration Documentation

enum Flag::FlagType

Enumerator:
pinkAboveYellow 
pinkAboveSkyblue 
yellowAbovePink 
skyblueAbovePink 
numberOfFlagTypes 

Definition at line 109 of file LandmarksPercept.h.


Member Function Documentation

colorClass Flag::getLowerColor (  )  const

The function returns the color of the lower part of this flag.

Returns:
The color of the lower half.

Definition at line 28 of file LandmarksPercept.cpp.

References pink, pinkAboveSkyblue, pinkAboveYellow, skyblue, type, and yellow.

Referenced by OpenGLMethods::paintLandmarksPerceptToOpenGLList().

colorClass Flag::getUpperColor (  )  const

The function returns the color of the upper part of this flag.

Returns:
The color of the upper half.

Definition at line 41 of file LandmarksPercept.cpp.

References pink, skyblue, skyblueAbovePink, type, yellow, and yellowAbovePink.


Member Data Documentation

double Flag::angle

angle to the flag, relative to robot

Definition at line 125 of file LandmarksPercept.h.

Referenced by GT2004ImageProcessor::execute(), GT2004SelfLocator::getBearing(), CStatisticsDlgBar::handleMessagePercepts(), and GT2004SelfLocator::updateFlagAndGoalBufferByOdometry().

double Flag::angleValidity

The validity of the determined direction. Not used yet.

Definition at line 119 of file LandmarksPercept.h.

double Flag::distance

distance to the flag, relative to robot

Definition at line 122 of file LandmarksPercept.h.

Referenced by GT2004SelfLocator::getBearing(), and CStatisticsDlgBar::handleMessagePercepts().

double Flag::distanceValidity

The validity of the determined distance. Not used yet.

Definition at line 118 of file LandmarksPercept.h.

Vector2<double> Flag::position

The position of this flag on the field.

Definition at line 117 of file LandmarksPercept.h.

Referenced by LandmarksPercept::addFlag(), and GT2004SelfLocator::getBearing().

FlagType Flag::type

The type of this flag.

Definition at line 116 of file LandmarksPercept.h.

Referenced by LandmarksPercept::addFlag(), GT2004SelfLocator::addFlag(), GT2004ImageProcessor::execute(), getLowerColor(), getUpperColor(), CStatisticsDlgBar::handleMessagePercepts(), and LandmarksState::update().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:31:41 2006 for DT2005.panorama by  doxygen 1.4.7