Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Main Class Reference

#include <Main.h>

Inheritance diagram for Main:

List of all members.


Detailed Description

Definition at line 17 of file Main.h.


Public Member Functions

 Main ()
 constructor
 ~Main ()
 destructor
virtual void DoStart ()
virtual void run ()
virtual void DoStop ()
virtual void processEvent (const EventBase &event)
 listens for a sensor update event, then calls SharedGlobals::signalHaveSensors()

Static Public Member Functions

static const char * getClassName ()
static ProcessID::ProcessID_t getID ()
static const char * getEventsID ()
static const char * getWorldStatePoolID ()

Static Protected Member Functions

static bool gotCamera (RCRegion *msg)
static bool gotSensors (RCRegion *msg)
static bool gotEvent (RCRegion *msg)
static bool gotTimer (RCRegion *msg)

Protected Attributes

SharedObject
< sim::SoundPlayQueue_t
sounds
SharedObject
< sim::MotionCommandQueue_t
motions
SharedObject< sim::EventQueue_tevents
SharedObject< sim::CameraQueue_tcameraFrames
SharedObject< sim::SensorQueue_tsensorFrames
SharedObject< sim::TimerWakeup_ttimerWakeup
SharedObject
< sim::StatusRequest_t
statusRequest
SharedObject< MotionManagermotionmanager
SharedObject< SoundManagersoundmanager
SharedObject< WorldStatePoolworldstatepool
SharedObject< motionProfiler_tmotionProf
SharedObject< soundProfiler_tsoundProf
class MessageReceivervisrecv
class MessageReceiversensrecv
class MessageReceiverevtrecv
class MessageReceivertimerrecv
class MessageReceiverstatusrecv
class TimerExecThreadtimerExec
bool visionRead
WirelessThread wireless_thread
WorldState worldStateCache
 used for temporary storage when parsing sensor frames, allocation here avoids rather costly constructor call on every sensor frame
EntryPoint behaviorLock
RCRegioncurimgregion
BufferedImageGenerator::ImageSource img
 root data source for vision stream, references data in curimgregion
unsigned int lastVisionSN
 serial number of last camera frame, just so we can give warning message when we drop (if verbose is set)
unsigned int lastSensorSN
 serial number of last sensor frame, just so we can give warning message when we drop (if verbose is set)
unsigned int lastSensorUpdateTime
 time that last sensor update was posted

Private Member Functions

 Main (const Main &)
 don't call (copy constructor)
Mainoperator= (const Main &)
 don't call (assignment operator)

Constructor & Destructor Documentation

Main (  ) 

constructor

Definition at line 30 of file Main.cc.

~Main (  ) 

destructor

Definition at line 78 of file Main.cc.

Main ( const Main  )  [private]

don't call (copy constructor)


Member Function Documentation

void DoStart (  )  [virtual]

Reimplemented from Process.

Definition at line 88 of file Main.cc.

void run (  )  [virtual]

Reimplemented from Process.

Definition at line 118 of file Main.cc.

void DoStop (  )  [virtual]

Reimplemented from Process.

Definition at line 169 of file Main.cc.

void processEvent ( const EventBase event  )  [virtual]

listens for a sensor update event, then calls SharedGlobals::signalHaveSensors()

Implements EventListener.

Definition at line 208 of file Main.cc.

static const char* getClassName (  )  [inline, static]

Definition at line 31 of file Main.h.

static ProcessID::ProcessID_t getID (  )  [inline, static]

Definition at line 32 of file Main.h.

static const char* getEventsID (  )  [inline, static]

Definition at line 34 of file Main.h.

static const char* getWorldStatePoolID (  )  [inline, static]

Definition at line 35 of file Main.h.

bool gotCamera ( RCRegion msg  )  [static, protected]

Definition at line 215 of file Main.cc.

Referenced by DoStart().

bool gotSensors ( RCRegion msg  )  [static, protected]

Definition at line 307 of file Main.cc.

Referenced by DoStart().

bool gotEvent ( RCRegion msg  )  [static, protected]

Definition at line 366 of file Main.cc.

Referenced by DoStart().

bool gotTimer ( RCRegion msg  )  [static, protected]

Definition at line 415 of file Main.cc.

Referenced by DoStart().

Main& operator= ( const Main  )  [private]

don't call (assignment operator)


Member Data Documentation

Definition at line 38 of file Main.h.

Referenced by DoStart().

Definition at line 39 of file Main.h.

Referenced by DoStart().

Definition at line 40 of file Main.h.

Referenced by DoStart().

Definition at line 41 of file Main.h.

Referenced by DoStart().

Definition at line 42 of file Main.h.

Referenced by DoStart().

Definition at line 43 of file Main.h.

Referenced by DoStart().

Definition at line 44 of file Main.h.

Referenced by DoStart().

Definition at line 45 of file Main.h.

Definition at line 46 of file Main.h.

Definition at line 47 of file Main.h.

Referenced by gotSensors().

Definition at line 48 of file Main.h.

Definition at line 49 of file Main.h.

class MessageReceiver* visrecv [protected]

Definition at line 51 of file Main.h.

Referenced by DoStart(), DoStop(), and run().

class MessageReceiver* sensrecv [protected]

Definition at line 52 of file Main.h.

Referenced by DoStart(), DoStop(), and run().

class MessageReceiver* evtrecv [protected]

Definition at line 53 of file Main.h.

Referenced by DoStart(), DoStop(), and run().

class MessageReceiver* timerrecv [protected]

Definition at line 54 of file Main.h.

Referenced by DoStart(), DoStop(), and run().

class MessageReceiver* statusrecv [protected]

Definition at line 55 of file Main.h.

Referenced by DoStart(), and DoStop().

class TimerExecThread* timerExec [protected]

Definition at line 56 of file Main.h.

Referenced by DoStart(), gotCamera(), gotEvent(), gotSensors(), gotTimer(), and run().

bool visionRead [protected]

Definition at line 57 of file Main.h.

Definition at line 58 of file Main.h.

Referenced by DoStart(), and DoStop().

used for temporary storage when parsing sensor frames, allocation here avoids rather costly constructor call on every sensor frame

Definition at line 59 of file Main.h.

EntryPoint behaviorLock [protected]

Definition at line 60 of file Main.h.

Referenced by DoStart(), gotCamera(), gotEvent(), gotSensors(), gotTimer(), Main(), and run().

RCRegion* curimgregion [protected]

Definition at line 66 of file Main.h.

Referenced by DoStop(), and gotCamera().

root data source for vision stream, references data in curimgregion

Definition at line 67 of file Main.h.

Referenced by gotCamera().

unsigned int lastVisionSN [protected]

serial number of last camera frame, just so we can give warning message when we drop (if verbose is set)

Definition at line 68 of file Main.h.

Referenced by gotCamera().

unsigned int lastSensorSN [protected]

serial number of last sensor frame, just so we can give warning message when we drop (if verbose is set)

Definition at line 69 of file Main.h.

Referenced by gotSensors().

unsigned int lastSensorUpdateTime [protected]

time that last sensor update was posted

Definition at line 70 of file Main.h.

Referenced by gotEvent(), and gotSensors().


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

Tekkotsu Hardware Abstraction Layer 4.0
Generated Thu Nov 22 01:01:22 2007 by Doxygen 1.5.4