HeadPointControllerBehavior Class Reference#include <HeadPointControllerBehavior.h>
Inheritance diagram for HeadPointControllerBehavior:
[legend]List of all members.
Detailed Description
Listens to control commands coming in from the command port for remotely controlling the head.
Definition at line 14 of file HeadPointControllerBehavior.h.
Constructor & Destructor Documentation
HeadPointControllerBehavior::HeadPointControllerBehavior |
( |
|
) |
[inline] |
|
Member Function Documentation
void HeadPointControllerBehavior::DoStart |
( |
|
) |
[virtual] |
|
void HeadPointControllerBehavior::DoStop |
( |
|
) |
[virtual] |
|
static std::string HeadPointControllerBehavior::getClassDescription |
( |
|
) |
[inline, static] |
|
virtual std::string HeadPointControllerBehavior::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 77 of file HeadPointControllerBehavior.h. |
int HeadPointControllerBehavior::mechacmd_callback |
( |
char * |
buf, |
|
|
int |
bytes |
|
) |
[static] |
|
virtual void HeadPointControllerBehavior::processEvent |
( |
const EventBase & |
|
) |
[inline, virtual] |
|
void HeadPointControllerBehavior::runCommand |
( |
unsigned char * |
command |
) |
[private] |
|
Member Data Documentation
The documentation for this class was generated from the following files:
|