| Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <HeadLevelBehavior.h>
Inheritance diagram for HeadLevelBehavior:

Definition at line 13 of file HeadLevelBehavior.h.
Public Member Functions | |
| HeadLevelBehavior () | |
| constructor | |
| virtual | ~HeadLevelBehavior () |
| destructor | |
| virtual void | DoStart () |
| By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods. | |
| virtual void | DoStop () |
By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might delete this ). | |
| virtual void | processEvent (const EventBase &event) |
| By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing. | |
| 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 | |
| const EventBase | head_release |
| event mask for releasing head (chin button down) | |
| const EventBase | head_lock |
| event mask for locking head (chin button up) | |
| const SharedObject< HeadPointerMC > | head |
| might as well just hang on to the whole memory region and reuse it, we can peek for most of our stuff | |
| MotionManager::MC_ID | head_id |
| MCID of headpointer. | |
|
|
constructor
Definition at line 16 of file HeadLevelBehavior.h. References SharedObjectBase::getRegion(), head, head_id, head_lock, head_release, and ERS210Info::HeadFrButOffset. |
Here is the call graph for this function:

|
|
destructor
Definition at line 26 of file HeadLevelBehavior.h. References SharedObjectBase::getRegion(), and head. |
Here is the call graph for this function:

|
|
By default, merely adds to the reference counter (through AddReference()) you should still call this from your overriding methods.
Reimplemented from BehaviorBase. Definition at line 30 of file HeadLevelBehavior.h. References EventRouter::addListener(), MotionManager::addMotion(), BehaviorBase::DoStart(), erouter, HeadPointerMC::GravityRelative, head, head_id, head_lock, head_release, ERS210Info::HeadOffset, motman, WorldState::outputs, ERS210Info::PanOffset, ERS210Info::RollOffset, state, and ERS210Info::TiltOffset. |
Here is the call graph for this function:

|
|
By default, subtracts from the reference counter, and deletes if zero you should still call this when you override this call this at the end of your DoStop(), not beginning (it might
Reimplemented from BehaviorBase. Definition at line 39 of file HeadLevelBehavior.h. References HeadPointerMC::BodyRelative, BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), head, head_id, motman, and MotionManager::removeMotion(). |
Here is the call graph for this function:

|
|
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 57 of file HeadLevelBehavior.h. |
|
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 56 of file HeadLevelBehavior.h. |
|
|
By defining here, allows you to get away with not supplying a processEvent() function for the EventListener interface. By default, does nothing.
Reimplemented from BehaviorBase. Definition at line 46 of file HeadLevelBehavior.h. References MotionManager::addMotion(), ASSERTRET, HeadPointerMC::BodyRelative, EventBase::getName(), head, head_lock, head_release, ERS210Info::HeadOffset, motman, ERS210Info::NumHeadJoints, WorldState::outputs, state, and ERS210Info::TPROffset_t. |
Here is the call graph for this function:

|
|
might as well just hang on to the whole memory region and reuse it, we can peek for most of our stuff
Definition at line 62 of file HeadLevelBehavior.h. |
|
|
MCID of headpointer.
Definition at line 63 of file HeadLevelBehavior.h. |
|
|
event mask for locking head (chin button up)
Definition at line 61 of file HeadLevelBehavior.h. |
|
|
event mask for releasing head (chin button down)
Definition at line 60 of file HeadLevelBehavior.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:56:12 2003 by Doxygen 1.3.4 |