Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <DriveMeBehavior.h>
Inheritance diagram for DriveMeBehavior:
The AIBO walks accordingly and then stands up, then asks again. And so on and so on.
Input is from cin, not the tekkotsu console (sout)
Definition at line 13 of file DriveMeBehavior.h.
Public Member Functions | |
DriveMeBehavior () | |
constructor | |
virtual | ~DriveMeBehavior () |
destructor | |
virtual void | DoStart () |
By default, merely adds to the reference counter (through AddReference())
| |
virtual void | DoStop () |
By default, subtracts from the reference counter, and deletes if zero
| |
virtual void | processEvent (const EventBase &event) |
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 | |
MotionManager::MC_ID | walker_id |
walks | |
MotionManager::MC_ID | stand_id |
stands up first | |
SharedObject< MotionSequenceMC< MotionSequence::SizeSmall > > | stand |
for standing | |
double | last_dx |
the last dx received | |
double | last_dy |
the last dy received | |
double | last_da |
the last da received | |
unsigned int | last_time |
timestamp of last parameter set |
|
constructor
Definition at line 21 of file DriveMeBehavior.cc. References stand. |
|
destructor
Definition at line 16 of file DriveMeBehavior.h. |
|
By default, merely adds to the reference counter (through AddReference())
Reimplemented from BehaviorBase. Definition at line 33 of file DriveMeBehavior.cc. References EventRouter::addListener(), MotionManager::addMotion(), EventRouter::addTimer(), BehaviorBase::DoStart(), erouter, MotionManager::kStdPriority, motman, stand, stand_id, EventBase::timerEGID, and walker_id. |
|
By default, subtracts from the reference counter, and deletes if zero
Reimplemented from BehaviorBase. Definition at line 46 of file DriveMeBehavior.cc. References BehaviorBase::DoStop(), erouter, EventRouter::forgetListener(), motman, MotionManager::removeMotion(), EventRouter::removeTimer(), stand_id, and walker_id. |
|
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 24 of file DriveMeBehavior.h. |
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 23 of file DriveMeBehavior.h. |
|
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 59 of file DriveMeBehavior.cc. References EventRouter::addTimer(), MotionManager::checkinMotion(), MotionManager::checkoutMotion(), erouter, EventBase::getGeneratorID(), last_da, last_dx, last_dy, last_time, motman, MotionSequence::play(), WalkMC::setTargetVelocity(), stand_id, EventBase::timerEGID, and walker_id. |
|
the last da received
Definition at line 33 of file DriveMeBehavior.h. |
|
the last dx received
Definition at line 31 of file DriveMeBehavior.h. |
|
the last dy received
Definition at line 32 of file DriveMeBehavior.h. |
|
timestamp of last parameter set
Definition at line 34 of file DriveMeBehavior.h. |
|
for standing
Definition at line 29 of file DriveMeBehavior.h. |
|
stands up first
Definition at line 28 of file DriveMeBehavior.h. |
|
walks
Definition at line 27 of file DriveMeBehavior.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:08:54 2003 by Doxygen 1.3.2 |