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

ConditionalBoundary Class Reference

The class represents a rectangular landmark boundary. More...

#include <LandmarksPercept.h>

Inheritance diagram for ConditionalBoundary:

Inheritance graph
[legend]
Collaboration diagram for ConditionalBoundary:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ConditionalBoundary ()
 Constructor.

void addX (const double px, bool isOnBorder)
 The function adds a point to the boundary.

void addY (const double py, bool isOnBorder)
 The function adds a point to the boundary.

void add (const ConditionalBoundary &b)
 The function adds another boundary to this one.

bool isOnBorder (const double &border) const
 The function determines whether a certain edge lies on the image border.

void serialize (In *in, Out *out)

Private Attributes

Boundary< double > freeBorders
 Contains the edges that do not touch the image border.


Detailed Description

The class represents a rectangular landmark boundary.

It also encodes which edges of the boundary touch the image border.

Definition at line 25 of file LandmarksPercept.h.


Constructor & Destructor Documentation

ConditionalBoundary::ConditionalBoundary  )  [inline]
 

Constructor.

The boundary is empty.

Definition at line 35 of file LandmarksPercept.h.

References freeBorders, and pi.


Member Function Documentation

void ConditionalBoundary::addX const double  px,
bool  isOnBorder
[inline]
 

The function adds a point to the boundary.

Parameters:
px The x-coordinate of a new x-boundary-candidate.
isOnBorder Is the point on the image border?

Definition at line 44 of file LandmarksPercept.h.

References Range< double >::add(), freeBorders, and Boundary< double >::x.

Referenced by VLCFlagSpecialist::getFlagPercept(), SlamFlagSpecialist::getFlagPercept(), GT2005FlagSpecialist::getFlagPercept(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::publishResults(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

Here is the call graph for this function:

void ConditionalBoundary::addY const double  py,
bool  isOnBorder
[inline]
 

The function adds a point to the boundary.

Parameters:
py The y-coordinate of a new y-boundary-candidate.
isOnBorder Is the point on the image border?

Definition at line 57 of file LandmarksPercept.h.

References Range< double >::add(), freeBorders, and Boundary< double >::y.

Referenced by VLCFlagSpecialist::getFlagPercept(), SlamFlagSpecialist::getFlagPercept(), GT2005FlagSpecialist::getFlagPercept(), VLCGoalRecognizer::interpretResults(), GT2005GoalRecognizer::publishResults(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

Here is the call graph for this function:

void ConditionalBoundary::add const ConditionalBoundary b  )  [inline]
 

The function adds another boundary to this one.

Parameters:
b The other boundary.

Definition at line 68 of file LandmarksPercept.h.

References Boundary< double >::add(), Boundary< T >::add(), and freeBorders.

Referenced by SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

Here is the call graph for this function:

bool ConditionalBoundary::isOnBorder const double &  border  )  const [inline]
 

The function determines whether a certain edge lies on the image border.

Parameters:
border This parameter specifies the edge to test. The parameter must be one of the following four members of this object: x.min, x.max, y.min, y.max. A typical call would be: b.isOnBorder(b.min.x)
Returns:
Does the specified edge touch the image border?

Definition at line 82 of file LandmarksPercept.h.

References freeBorders, Range< double >::max, Range< double >::min, Boundary< double >::x, and Boundary< double >::y.

Referenced by SlamSampleTemplateGenerator::addFlag(), GT2005StableSampleTemplateGenerator::addFlag(), GT2005SampleTemplateGenerator::addFlag(), GT2004SelfLocator::addFlag(), GT2005ObstaclesLocator::determineSeenGoals(), LandmarksPercept::estimateOffsetAndValiditiesForGoal(), LandmarksPercept::estimateOffsetForFlags(), VLCFlagSpecialist::estimateOffsetForFlags(), SlamFlagSpecialist::estimateOffsetForFlags(), GT2005FlagSpecialist::estimateOffsetForFlags(), GT2004SelfLocator::execute(), SlamSampleTemplateGenerator::getBearing(), GT2005StableSampleTemplateGenerator::getBearing(), GT2005SampleTemplateGenerator::getBearing(), GT2004SelfLocator::getBearing(), SlamSelfLocator::landmarksObservationUpdate(), GT2005StableSelfLocator::landmarksObservationUpdate(), GT2005SelfLocator::landmarksObservationUpdate(), SlamGoalRecognizer::scanLinesForGoals(), and GoalRecognizer::scanLinesForGoals().

void ConditionalBoundary::serialize In in,
Out out
[inline, virtual]
 

Implements Streamable.

Reimplemented in Flag, and Goal.

Definition at line 95 of file LandmarksPercept.h.

References freeBorders, Range< double >::max, Range< double >::min, STREAM, STREAM_REGISTER_BEGIN, STREAM_REGISTER_FINISH, Boundary< double >::x, and Boundary< double >::y.


Member Data Documentation

Boundary<double> ConditionalBoundary::freeBorders [private]
 

Contains the edges that do not touch the image border.

Definition at line 28 of file LandmarksPercept.h.

Referenced by add(), addX(), addY(), ConditionalBoundary(), isOnBorder(), and serialize().


The documentation for this class was generated from the following file:
Generated on Mon Mar 20 22:11:55 2006 for GT2005 by doxygen 1.3.6