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

Flag Class Reference

The class represents a flag. More...

#include <LandmarksPercept.h>

Inheritance diagram for Flag:

Inheritance graph
[legend]
Collaboration diagram for Flag:

Collaboration graph
[legend]
List of all members.

Public Types

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

Public Member Functions

colorClass getLowerColor () const
 The function returns the color of the lower part of this flag.

colorClass getUpperColor () const
 The function returns the color of the upper part of this flag.


Public Attributes

FlagType type
 The type of this flag.

Vector2< double > position
 The position of this flag on the field.

double distanceValidity
 The validity of the determined distance.

double angleValidity
 The validity of the determined direction.

double distance
 distance to the flag, relative to robot

double angle
 angle to the flag, relative to robot


Detailed Description

The class represents a flag.

Definition at line 97 of file LandmarksPercept.h.


Member Enumeration Documentation

enum Flag::FlagType
 

Enumeration values:
pinkAboveYellow 
pinkAboveSkyblue 
yellowAbovePink 
skyblueAbovePink 
numberOfFlagTypes 

Definition at line 100 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 21 of file LandmarksPercept.cpp.

References colorClass, pinkAboveSkyblue, and pinkAboveYellow.

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 34 of file LandmarksPercept.cpp.

References colorClass, and yellowAbovePink.


Member Data Documentation

FlagType Flag::type
 

The type of this flag.

Definition at line 107 of file LandmarksPercept.h.

Referenced by LandmarksPercept::addFlag(), GT2004SelfLocator::addFlag(), and LandmarksState::update().

Vector2<double> Flag::position
 

The position of this flag on the field.

Definition at line 108 of file LandmarksPercept.h.

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

double Flag::distanceValidity
 

The validity of the determined distance.

Not used yet.

Definition at line 109 of file LandmarksPercept.h.

Referenced by LandmarksPercept::estimateOffsetForFlags(), and GT2004FlagSpecialist::estimateOffsetForFlags().

double Flag::angleValidity
 

The validity of the determined direction.

Not used yet.

Definition at line 110 of file LandmarksPercept.h.

Referenced by LandmarksPercept::estimateOffsetForFlags(), and GT2004FlagSpecialist::estimateOffsetForFlags().

double Flag::distance
 

distance to the flag, relative to robot

Definition at line 113 of file LandmarksPercept.h.

Referenced by LandmarksPercept::estimateOffsetForFlags(), GT2004FlagSpecialist::estimateOffsetForFlags(), GT2004SelfLocator::generatePoseTemplates(), and GT2004SelfLocator::getBearing().

double Flag::angle
 

angle to the flag, relative to robot

Definition at line 116 of file LandmarksPercept.h.

Referenced by LandmarksPercept::estimateOffsetForFlags(), GT2004FlagSpecialist::estimateOffsetForFlags(), GT2004SelfLocator::generatePoseTemplates(), and GT2004SelfLocator::getBearing().


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