UPennWalkControllerBehavior Class Reference#include <UPennWalkControllerBehavior.h>
Inheritance diagram for UPennWalkControllerBehavior:
[legend]List of all members.
Detailed Description
Listens to control commands coming in from the command port for remotely controlling the walk.
Definition at line 16 of file UPennWalkControllerBehavior.h.
Constructor & Destructor Documentation
UPennWalkControllerBehavior::UPennWalkControllerBehavior |
( |
|
) |
[inline] |
|
virtual UPennWalkControllerBehavior::~UPennWalkControllerBehavior |
( |
|
) |
[inline, virtual] |
|
Member Function Documentation
void UPennWalkControllerBehavior::DoStart |
( |
|
) |
[virtual] |
|
void UPennWalkControllerBehavior::DoStop |
( |
|
) |
[virtual] |
|
static std::string UPennWalkControllerBehavior::getClassDescription |
( |
|
) |
[inline, static] |
|
virtual std::string UPennWalkControllerBehavior::getDescription |
( |
|
) |
const [inline, virtual] |
|
|
Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis).
By default simply returns getName(), because any calls from a BehaviorBase function to getClassDescription() are going to call BehaviorBase::getClassDescription(), not ~YourSubClass~getClassDescription(), because static functions can't be virtual in C++ (doh!)
This means that getDescription called on a pointer to a BehaviorBase of unknown subtype would always return an empty string, which is pretty useless. So instead we return the name in this situation. If you want getDescription to return getClassDescription, you'll have to override it in your subclass to do so.
Reimplemented from BehaviorBase.
Definition at line 96 of file UPennWalkControllerBehavior.h. |
virtual UPennWalkMC* UPennWalkControllerBehavior::getWalkMC |
( |
|
) |
[inline, virtual] |
|
int UPennWalkControllerBehavior::mechacmd_callback |
( |
char * |
buf, |
|
|
int |
bytes |
|
) |
[static] |
|
virtual void UPennWalkControllerBehavior::processEvent |
( |
const EventBase & |
|
) |
[inline, virtual] |
|
void UPennWalkControllerBehavior::runCommand |
( |
unsigned char * |
command |
) |
[private] |
|
Member Data Documentation
|
The last WCB object that was theOne, so we can restore it to prominence when we die. This is a nice gesture, but it doesn't really make sense since we're all using the same port. But just in case something changes and we don't do that, this mechanism is in place.
Definition at line 54 of file UPennWalkControllerBehavior.h.
Referenced by DoStart(), DoStop(), and ~UPennWalkControllerBehavior(). |
The documentation for this class was generated from the following files:
|