Homepage Demos Overview Downloads Tutorials Reference
Credits

Lookout Class Reference

#include <Lookout.h>

Inheritance diagram for Lookout:

Inheritance graph
[legend]
List of all members.

Detailed Description

The Lookout's job is to move the head and collect sensor information. Head motion can be none (user will point the head himself), pointAt, scan, or track. The data collected can be an image or distance reading, or for scan operations, it can be a list of locations where certain VisionObject or VisionRegion streams reported hits.

Definition at line 27 of file Lookout.h.

Public Member Functions

 Lookout ()
 Constructor.
virtual ~Lookout ()
 Destructor.
virtual void DoStart ()
virtual void DoStop ()
virtual void processEvent (const EventBase &event)
virtual std::string getDescription () const
virtual unsigned int executeRequest (const LookoutRequest &)

Static Public Member Functions

static std::string getClassDescription ()
static Point findLocationFor (float, float)

Static Public Attributes

static const unsigned int Invalid_LO_ID = (unsigned int)-1

Protected Types

 start_pan
 pan_complete
 reset_pan
 no_event
 dur_timer
 scan_timer
enum  LookoutTimerSourceId_t {
  start_pan, pan_complete, reset_pan, no_event,
  dur_timer, scan_timer
}

Protected Member Functions

virtual void executeRequest ()
virtual void requestComplete ()
template<class T>
void pushRequest (const LookoutRequest &req)
void processPointAt (const EventBase &event)
 PointAtReqeust.
bool findPixelModes (StoreModeImageRequest &modeRequest)
void getData ()
void processScan (const EventBase &event)
 ScanReqeust.
void scan ()
void scanAlongLine (const Point &start, const Point &end)
void scanArea (coordinate_t left, coordinate_t right, coordinate_t far, coordinate_t near)
Point findLocationFor (const VisionObjectEvent *voe)
Point findLocationFor (const CMVision::region *reg)
void storeVisionRegionDataTo (vector< Point > &, const set< int > &, int)
void storeIRDataTo (vector< Point > &)

Protected Attributes

MotionManager::MC_ID pointer_id
 a HeadPointerMC object
MotionManager::MC_ID sequence_id
 id for scan/find motion sequence
queue< LookoutRequest * > requests
LookoutRequestcurReq
bool landmarkInView
unsigned int idCounter

Private Member Functions

Lookoutoperator= (const Lookout &)
 Lookout (const Lookout &)


Member Enumeration Documentation

enum LookoutTimerSourceId_t [protected]

Enumerator:
start_pan 
pan_complete 
reset_pan 
no_event 
dur_timer 
scan_timer 

Definition at line 104 of file Lookout.h.


Constructor & Destructor Documentation

Lookout (  ) 

Constructor.

Definition at line 34 of file Lookout.cc.

virtual ~Lookout (  )  [inline, virtual]

Destructor.

Definition at line 32 of file Lookout.h.

Lookout ( const Lookout  )  [private]


Member Function Documentation

void DoStart (  )  [virtual]

Definition at line 42 of file Lookout.cc.

Referenced by VRmixin::startCrew().

void DoStop (  )  [virtual]

Definition at line 46 of file Lookout.cc.

Referenced by VRmixin::stopCrew().

void executeRequest (  )  [protected, virtual]

Definition at line 363 of file Lookout.cc.

Referenced by Lookout::executeRequest(), and Lookout::requestComplete().

unsigned int executeRequest ( const LookoutRequest  )  [virtual]

Definition at line 312 of file Lookout.cc.

Referenced by MapBuilder::scan(), MapBuilder::storeImage(), and MapBuilder::storeImageAt().

Point findLocationFor ( const CMVision::region *  reg  )  [inline, protected]

Definition at line 82 of file Lookout.h.

Point findLocationFor ( const VisionObjectEvent *  voe  )  [inline, protected]

Definition at line 79 of file Lookout.h.

Point findLocationFor ( float  ,
float   
) [static]

bool findPixelModes ( StoreModeImageRequest modeRequest  )  [protected]

Definition at line 170 of file Lookout.cc.

Referenced by Lookout::processPointAt().

static std::string getClassDescription (  )  [inline, static]

Definition at line 38 of file Lookout.h.

Referenced by Lookout::getDescription().

void getData (  )  [protected]

virtual std::string getDescription (  )  const [inline, virtual]

Definition at line 39 of file Lookout.h.

Lookout& operator= ( const Lookout  )  [private]

void processEvent ( const EventBase &  event  )  [virtual]

Definition at line 440 of file Lookout.cc.

void processPointAt ( const EventBase &  event  )  [protected]

PointAtReqeust.

Definition at line 194 of file Lookout.cc.

Referenced by Lookout::processEvent().

void processScan ( const EventBase &  event  )  [protected]

ScanReqeust.

Definition at line 70 of file Lookout.cc.

Referenced by Lookout::processEvent().

void pushRequest ( const LookoutRequest req  )  [inline, protected]

Definition at line 55 of file Lookout.h.

void requestComplete (  )  [protected, virtual]

Definition at line 399 of file Lookout.cc.

Referenced by Lookout::processPointAt(), and Lookout::processScan().

void scan (  )  [protected]

Definition at line 508 of file Lookout.cc.

Referenced by Lookout::executeRequest().

void scanAlongLine ( const Point start,
const Point end 
) [protected]

Definition at line 521 of file Lookout.cc.

Referenced by Lookout::scan().

void scanArea ( coordinate_t  left,
coordinate_t  right,
coordinate_t  far,
coordinate_t  near 
) [protected]

Definition at line 553 of file Lookout.cc.

Referenced by Lookout::scan().

void storeIRDataTo ( vector< Point > &   )  [protected]

Definition at line 158 of file Lookout.cc.

Referenced by Lookout::processScan().

void storeVisionRegionDataTo ( vector< Point > &  ,
const set< int > &  ,
int   
) [protected]

Definition at line 144 of file Lookout.cc.

Referenced by Lookout::processScan().


Member Data Documentation

unsigned int idCounter [protected]

Definition at line 102 of file Lookout.h.

Referenced by Lookout::executeRequest().

const unsigned int Invalid_LO_ID = (unsigned int)-1 [static]

Definition at line 49 of file Lookout.h.

bool landmarkInView [protected]

Definition at line 101 of file Lookout.h.

MotionManager::MC_ID pointer_id [protected]

MotionManager::MC_ID sequence_id [protected]

id for scan/find motion sequence

Definition at line 98 of file Lookout.h.

Referenced by Lookout::DoStop(), Lookout::processScan(), Lookout::scanAlongLine(), and Lookout::scanArea().


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

DualCoding 3.0beta
Generated Wed Oct 4 00:02:26 2006 by Doxygen 1.4.7