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] |
|
virtual HeadPointControllerBehavior::~HeadPointControllerBehavior |
( |
|
) |
[inline, virtual] |
|
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 74 of file HeadPointControllerBehavior.h. |
int HeadPointControllerBehavior::mechacmd_callback |
( |
char * |
buf, |
|
|
int |
bytes |
|
) |
[static] |
|
void HeadPointControllerBehavior::runCommand |
( |
unsigned char * |
command |
) |
[private] |
|
Member Data Documentation
|
The last HPCB 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 42 of file HeadPointControllerBehavior.h.
Referenced by DoStart(), DoStop(), and ~HeadPointControllerBehavior(). |
The documentation for this class was generated from the following files:
|