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

Definition at line 9 of file StareAtBallBehavior.h.
Public Member Functions | |
| StareAtBallBehavior () | |
| constructor | |
| virtual | ~StareAtBallBehavior () |
| destructor | |
| virtual void | DoStart () |
| adds a headpointer and a listens for vision events | |
| virtual void | DoStop () |
| removes motion commands and stops listening | |
| virtual void | processEvent (const EventBase &event) |
| sets the head to point at the object and sets the body to move where the head points | |
| 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 | |
| MotionManager::MC_ID | headpointer_id |
| a HeadPointerMC object | |
|
|
constructor
Definition at line 12 of file StareAtBallBehavior.h. References headpointer_id. |
|
|
destructor
Definition at line 16 of file StareAtBallBehavior.h. |
|
|
adds a headpointer and a listens for vision events
Reimplemented from BehaviorBase. Definition at line 11 of file StareAtBallBehavior.cc. References EventRouter::addListener(), MotionManager::addMotion(), BehaviorBase::DoStart(), erouter, headpointer_id, motman, and EventBase::visionEGID. |
Here is the call graph for this function:

|
|
removes motion commands and stops listening
Reimplemented from BehaviorBase. Definition at line 17 of file StareAtBallBehavior.cc. References BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), headpointer_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 28 of file StareAtBallBehavior.h. |
|
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 27 of file StareAtBallBehavior.h. |
|
|
sets the head to point at the object and sets the body to move where the head points
Reimplemented from BehaviorBase. Definition at line 24 of file StareAtBallBehavior.cc. References MotionManager::checkinMotion(), MotionManager::checkoutMotion(), DtoR(), EventBase::getGeneratorID(), EventBase::getTypeID(), ERS210Info::HeadOffset, headpointer_id, motman, WorldState::outputs, ERS210Info::PanOffset, HeadPointerMC::setJoints(), state, EventBase::statusETID, ERS210Info::TiltOffset, and EventBase::visionEGID. |
Here is the call graph for this function:

|
|
a HeadPointerMC object
Definition at line 31 of file StareAtBallBehavior.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:57:46 2003 by Doxygen 1.3.4 |