Aibo3DControllerBehavior Class Reference#include <Aibo3DControllerBehavior.h>
Inheritance diagram for Aibo3DControllerBehavior:
[legend]List of all members.
Detailed Description
Listens to aibo3d control commands coming in from the command port.
Definition at line 25 of file Aibo3DControllerBehavior.h.
|
Public Member Functions |
| Aibo3DControllerBehavior () |
| constructor
|
virtual | ~Aibo3DControllerBehavior () |
| destructor
|
int | registerData (char *buf, int bytes) |
| processes input from the GUI
|
void | updateRC () |
| sends the new joint commands to the motion command
|
virtual void | DoStart () |
| By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.
|
virtual void | DoStop () |
| By default, subtracts from the reference counter (RemoveReference()), and thus may deletex if zero; Don't forget to still call this when you override this; Warning: call this at the end of your DoStop(), not beginning (it might delete this ).
|
virtual std::string | getGUIType () const |
| returns string corresponding to the Java GUI which should be launched
|
virtual unsigned int | getPort () const |
| returns port number the Java GUI should connect to
|
virtual std::string | getDescription () const |
| Gives a short description of what this particular instantiation does (in case a more specific description is needed on an individual basis).
|
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 | rcontrol_id |
| remote controller motion command's id
|
Socket * | cmdsock |
| The input command stream socket.
|
float | val [NumPIDJoints] |
| the value to use for each of the PID joints
|
char * | fbuf |
| alias to val
|
unsigned int | pos |
| a counter to know when we've gotten 4 frames
|
Private Member Functions |
| Aibo3DControllerBehavior (const Aibo3DControllerBehavior &) |
| don't call
|
Aibo3DControllerBehavior | operator= (const Aibo3DControllerBehavior &) |
| don't call
|
Constructor & Destructor Documentation
Aibo3DControllerBehavior::Aibo3DControllerBehavior |
( |
|
) |
[inline] |
|
Member Function Documentation
virtual void Aibo3DControllerBehavior::DoStart |
( |
|
) |
[inline, virtual] |
|
virtual void Aibo3DControllerBehavior::DoStop |
( |
|
) |
[inline, virtual] |
|
|
By default, subtracts from the reference counter (RemoveReference()), and thus may deletex if zero; Don't forget to still call this when you override this; Warning: call this at the end of your DoStop(), not beginning (it might delete this ).
Reimplemented from BehaviorBase.
Definition at line 97 of file Aibo3DControllerBehavior.h. |
std::string Aibo3DControllerBehavior::getClassDescription |
( |
|
) |
[inline, static] |
|
virtual std::string Aibo3DControllerBehavior::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 118 of file Aibo3DControllerBehavior.h. |
virtual std::string Aibo3DControllerBehavior::getGUIType |
( |
|
) |
const [inline, virtual] |
|
virtual unsigned int Aibo3DControllerBehavior::getPort |
( |
|
) |
const [inline, virtual] |
|
int Aibo3DControllerBehavior::registerData |
( |
char * |
buf, |
|
|
int |
bytes |
|
) |
[inline] |
|
void Aibo3DControllerBehavior::updateRC |
( |
|
) |
[inline] |
|
Member Data Documentation
The documentation for this class was generated from the following file:
|