Homepage Demos Overview Downloads Tutorials Reference
Credits

AutoGetupBehavior Class Reference

#include <AutoGetupBehavior.h>

Inheritance diagram for AutoGetupBehavior:

Inheritance graph
[legend]
List of all members.

Detailed Description

a little background behavior to keep the robot on its feet

Definition at line 15 of file AutoGetupBehavior.h.

Public Member Functions

 AutoGetupBehavior ()
 constructor

virtual ~AutoGetupBehavior ()
 destructor

virtual void DoStart ()
 Listens for the SensorSourceID::UpdatedSID.

virtual void DoStop ()
 Stops listening for events.

virtual void processEvent (const EventBase &event)
 Run appropriate motion script if the robot falls over.

virtual std::string getName () const
 Identifies the behavior in menus and such.


Static Public Member Functions

std::string getClassDescription ()
 Gives a short description of what this class of behaviors does... you should override this (but don't have to).


Protected Attributes

float back
 exponential average of backwards accel

float side
 exponential average of sideways accel

float gamma
 default 0.9, gamma parameter for exponential average of above

float sensitivity
 default 0.85*0.85, squared threshold to consider having fallen over, use values 0-1

bool waiting
 true while we're waiting to hear from completion of MotionSequence, won't try again until this is cleared


Constructor & Destructor Documentation

AutoGetupBehavior::AutoGetupBehavior  )  [inline]
 

constructor

Definition at line 18 of file AutoGetupBehavior.h.

virtual AutoGetupBehavior::~AutoGetupBehavior  )  [inline, virtual]
 

destructor

Definition at line 20 of file AutoGetupBehavior.h.


Member Function Documentation

virtual void AutoGetupBehavior::DoStart  )  [inline, virtual]
 

Listens for the SensorSourceID::UpdatedSID.

Reimplemented from BehaviorBase.

Definition at line 23 of file AutoGetupBehavior.h.

virtual void AutoGetupBehavior::DoStop  )  [inline, virtual]
 

Stops listening for events.

Reimplemented from BehaviorBase.

Definition at line 28 of file AutoGetupBehavior.h.

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

Gives a short description of what this class of behaviors does... you should override this (but don't have to).

Reimplemented from BehaviorBase.

Definition at line 62 of file AutoGetupBehavior.h.

virtual std::string AutoGetupBehavior::getName  )  const [inline, virtual]
 

Identifies the behavior in menus and such.

Implements BehaviorBase.

Definition at line 61 of file AutoGetupBehavior.h.

virtual void AutoGetupBehavior::processEvent const EventBase event  )  [inline, virtual]
 

Run appropriate motion script if the robot falls over.

Reimplemented from BehaviorBase.

Definition at line 33 of file AutoGetupBehavior.h.


Member Data Documentation

float AutoGetupBehavior::back [protected]
 

exponential average of backwards accel

Definition at line 65 of file AutoGetupBehavior.h.

Referenced by AutoGetupBehavior(), and processEvent().

float AutoGetupBehavior::gamma [protected]
 

default 0.9, gamma parameter for exponential average of above

Definition at line 67 of file AutoGetupBehavior.h.

Referenced by AutoGetupBehavior(), and processEvent().

float AutoGetupBehavior::sensitivity [protected]
 

default 0.85*0.85, squared threshold to consider having fallen over, use values 0-1

Definition at line 68 of file AutoGetupBehavior.h.

Referenced by AutoGetupBehavior(), and processEvent().

float AutoGetupBehavior::side [protected]
 

exponential average of sideways accel

Definition at line 66 of file AutoGetupBehavior.h.

Referenced by AutoGetupBehavior(), and processEvent().

bool AutoGetupBehavior::waiting [protected]
 

true while we're waiting to hear from completion of MotionSequence, won't try again until this is cleared

Definition at line 69 of file AutoGetupBehavior.h.

Referenced by AutoGetupBehavior(), and processEvent().


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

Tekkotsu v2.1
Generated Tue Mar 16 23:21:59 2004 by Doxygen 1.3.5