Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Kodu::VisualLocalizationTask Class Reference

#include <VisualLocalizationTask.h>

Inheritance diagram for Kodu::VisualLocalizationTask:

Detailed Description

Definition at line 20 of file VisualLocalizationTask.h.

List of all members.

Public Member Functions

 VisualLocalizationTask (const std::map< int, DualCoding::Point > &kStarConstellation, int maxStarsNeededToLocalize=kMinStarsRequiredToLocalize)
 Constructor.
 VisualLocalizationTask (const VisualLocalizationTask &kTask)
 Copy constructor.
 ~VisualLocalizationTask ()
 Destructor.
VisualLocalizationTaskoperator= (const VisualLocalizationTask &kTask)
 Assignment operator.
virtual bool canExecute (const KoduWorld &)
 Checks if this task can execute.
virtual const
DualCoding::PilotRequest 
getPilotRequest ()
 Generates the Pilot request the agent needs to localize.

Static Public Attributes

static const int kMinStarsRequiredToLocalize = 2

Private Attributes

std::map< int, DualCoding::Point > localizationPoints
 a copy of the constellation
int maxStarsRequested

Static Private Attributes

static unsigned int idCount = 50000
 used to create an id for each task

Constructor & Destructor Documentation

Kodu::VisualLocalizationTask::VisualLocalizationTask ( const std::map< int, DualCoding::Point > &  kStarConstellation,
int  maxStarsNeededToLocalize = kMinStarsRequiredToLocalize 
)

Constructor.

Definition at line 23 of file VisualLocalizationTask.h.

Kodu::VisualLocalizationTask::VisualLocalizationTask ( const VisualLocalizationTask kTask  ) 

Copy constructor.

Definition at line 44 of file VisualLocalizationTask.h.

Kodu::VisualLocalizationTask::~VisualLocalizationTask (  ) 

Destructor.

Definition at line 51 of file VisualLocalizationTask.h.


Member Function Documentation

bool Kodu::VisualLocalizationTask::canExecute ( const KoduWorld kWorldState  )  [virtual]

Checks if this task can execute.

Implements Kodu::PerceptualTaskBase.

Definition at line 22 of file VisualLocalizationTask.cc.

const DualCoding::PilotRequest Kodu::VisualLocalizationTask::getPilotRequest (  )  [virtual]

Generates the Pilot request the agent needs to localize.

Reimplemented from Kodu::PerceptualTaskBase.

Definition at line 26 of file VisualLocalizationTask.cc.

VisualLocalizationTask& Kodu::VisualLocalizationTask::operator= ( const VisualLocalizationTask kTask  ) 

Assignment operator.

Definition at line 56 of file VisualLocalizationTask.h.


Member Data Documentation

unsigned int Kodu::VisualLocalizationTask::idCount = 50000 [static, private]

used to create an id for each task

Definition at line 74 of file VisualLocalizationTask.h.

std::map<int, DualCoding::Point> Kodu::VisualLocalizationTask::localizationPoints [private]

a copy of the constellation

Definition at line 75 of file VisualLocalizationTask.h.

Referenced by canExecute(), getPilotRequest(), operator=(), and VisualLocalizationTask().


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

Tekkotsu v5.1CVS
Generated Mon May 9 04:59:23 2016 by Doxygen 1.6.3