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

Similar to ChaseBallBehavior, but this one doesn't try to move the head, so it's a little more... simple. However, it does make sure to take into account which direction the head is pointing when it sees the object.
Definition at line 19 of file SimpleChaseBallBehavior.h.
Public Member Functions | |
| SimpleChaseBallBehavior () | |
| constructor | |
| virtual | ~SimpleChaseBallBehavior () |
| destructor | |
| virtual void | DoStart () |
| adds a headpointer and a walker, 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. | |
Protected Attributes | |
| MotionManager::MC_ID | walker_id |
| a WalkMC object | |
|
|
constructor
Definition at line 22 of file SimpleChaseBallBehavior.h. References walker_id. |
|
|
destructor
Definition at line 26 of file SimpleChaseBallBehavior.h. |
|
|
adds a headpointer and a walker, and a listens for vision events
Reimplemented from BehaviorBase. Definition at line 29 of file SimpleChaseBallBehavior.h. References EventRouter::addListener(), MotionManager::addMotion(), BehaviorBase::DoStart(), erouter, motman, EventBase::visionEGID, and walker_id. |
Here is the call graph for this function:

|
|
removes motion commands and stops listening
Reimplemented from BehaviorBase. Definition at line 36 of file SimpleChaseBallBehavior.h. References BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), motman, MotionManager::removeMotion(), and walker_id. |
Here is the call graph for this function:

|
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 53 of file SimpleChaseBallBehavior.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 43 of file SimpleChaseBallBehavior.h. References EventBase::getGeneratorID(), EventBase::getTypeID(), ERS210Info::HeadOffset, WorldState::outputs, ERS210Info::PanOffset, state, EventBase::statusETID, EventBase::visionEGID, and walker_id. |
Here is the call graph for this function:

|
|
a WalkMC object
Definition at line 56 of file SimpleChaseBallBehavior.h. |
|
Tekkotsu v1.5 |
Generated Fri Oct 10 15:57:28 2003 by Doxygen 1.3.4 |