Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Main Class Reference

#include <Main.h>

Inheritance diagram for Main:

Detailed Description

Definition at line 17 of file Main.h.

List of all members.

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 ()

Protected Member Functions

void gotThreadedEvent (EventBase *evt)

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< 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)

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 28 of file Main.cc.

~Main (  ) 

destructor

Definition at line 73 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 83 of file Main.cc.

void doStop (  )  [virtual]

Reimplemented from Process.

Definition at line 188 of file Main.cc.

static const char* getClassName (  )  [static]

Definition at line 31 of file Main.h.

static const char* getEventsID (  )  [static]

Definition at line 34 of file Main.h.

static ProcessID::ProcessID_t getID (  )  [static]

Definition at line 32 of file Main.h.

bool gotCamera ( RCRegion msg  )  [static, protected]

Definition at line 236 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 gotSensors ( RCRegion msg  )  [static, protected]

Definition at line 327 of file Main.cc.

Referenced by doStart().

void gotThreadedEvent ( EventBase evt  )  [protected]

Definition at line 437 of file Main.cc.

Referenced by doStart().

bool gotTimer ( RCRegion msg  )  [static, protected]

Definition at line 413 of file Main.cc.

Referenced by doStart().

Main& operator= ( const Main  )  [private]

don't call (assignment operator)

void processEvent ( const EventBase event  )  [virtual]

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

Implements EventListener.

Definition at line 227 of file Main.cc.

void run (  )  [virtual]

Reimplemented from Process.

Definition at line 120 of file Main.cc.


Member Data Documentation

EntryPoint behaviorLock [protected]

Definition at line 58 of file Main.h.

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

Definition at line 40 of file Main.h.

Referenced by doStart().

RCRegion* curimgregion [protected]

Definition at line 66 of file Main.h.

Referenced by doStop(), and gotCamera().

Definition at line 39 of file Main.h.

Referenced by doStart().

class MessageReceiver* evtrecv [protected]

Definition at line 51 of file Main.h.

Referenced by doStart(), doStop(), and run().

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().

Definition at line 44 of file Main.h.

Definition at line 46 of file Main.h.

Definition at line 38 of file Main.h.

Referenced by doStart().

Definition at line 41 of file Main.h.

Referenced by doStart().

class MessageReceiver* sensrecv [protected]

Definition at line 50 of file Main.h.

Referenced by doStart(), doStop(), and run().

Definition at line 45 of file Main.h.

Definition at line 47 of file Main.h.

Definition at line 37 of file Main.h.

Referenced by doStart().

class MessageReceiver* statusrecv [protected]

Definition at line 53 of file Main.h.

Referenced by doStart(), and doStop().

Definition at line 43 of file Main.h.

Referenced by doStart().

class TimerExecThread* timerExec [protected]

Definition at line 54 of file Main.h.

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

class MessageReceiver* timerrecv [protected]

Definition at line 52 of file Main.h.

Referenced by doStart(), doStop(), and run().

Definition at line 42 of file Main.h.

Referenced by doStart().

bool visionRead [protected]

Definition at line 55 of file Main.h.

class MessageReceiver* visrecv [protected]

Definition at line 49 of file Main.h.

Referenced by doStart(), doStop(), and run().

Definition at line 56 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 57 of file Main.h.


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

Tekkotsu Hardware Abstraction Layer 5.1CVS
Generated Mon May 9 05:01:41 2016 by Doxygen 1.6.3