Homepage Demos Overview Downloads Tutorials Reference
Credits

Aibo3DControllerBehavior Class Reference

#include <Aibo3DControllerBehavior.h>

Inheritance diagram for Aibo3DControllerBehavior:

Inheritance graph
[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 getName () const
 returns name of behavior

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
Socketcmdsock
 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 const Aibo3DControllerBehavior  )  [private]
 

don't call

Aibo3DControllerBehavior::Aibo3DControllerBehavior  )  [inline]
 

constructor

Definition at line 42 of file Aibo3DControllerBehavior.h.

virtual Aibo3DControllerBehavior::~Aibo3DControllerBehavior  )  [inline, virtual]
 

destructor

Definition at line 49 of file Aibo3DControllerBehavior.h.


Member Function Documentation

virtual void Aibo3DControllerBehavior::DoStart  )  [inline, virtual]
 

By default, merely adds to the reference counter (through AddReference()); Note you should still call this from your overriding methods.

Reimplemented from BehaviorBase.

Definition at line 75 of file Aibo3DControllerBehavior.h.

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]
 

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 114 of file Aibo3DControllerBehavior.h.

virtual std::string Aibo3DControllerBehavior::getGUIType  )  const [inline, virtual]
 

returns string corresponding to the Java GUI which should be launched

Definition at line 109 of file Aibo3DControllerBehavior.h.

Referenced by DoStart(), and DoStop().

virtual std::string Aibo3DControllerBehavior::getName  )  const [inline, virtual]
 

returns name of behavior

Implements BehaviorBase.

Definition at line 113 of file Aibo3DControllerBehavior.h.

virtual unsigned int Aibo3DControllerBehavior::getPort  )  const [inline, virtual]
 

returns port number the Java GUI should connect to

Definition at line 111 of file Aibo3DControllerBehavior.h.

Referenced by DoStart().

Aibo3DControllerBehavior Aibo3DControllerBehavior::operator= const Aibo3DControllerBehavior  )  [private]
 

don't call

int Aibo3DControllerBehavior::registerData char *  buf,
int  bytes
[inline]
 

processes input from the GUI

Definition at line 52 of file Aibo3DControllerBehavior.h.

Referenced by aibo3dcontrollercmd_callback().

void Aibo3DControllerBehavior::updateRC  )  [inline]
 

sends the new joint commands to the motion command

Definition at line 67 of file Aibo3DControllerBehavior.h.

Referenced by DoStart(), and registerData().


Member Data Documentation

Socket* Aibo3DControllerBehavior::cmdsock [protected]
 

The input command stream socket.

Definition at line 30 of file Aibo3DControllerBehavior.h.

Referenced by Aibo3DControllerBehavior(), DoStart(), and DoStop().

char* Aibo3DControllerBehavior::fbuf [protected]
 

alias to val

Definition at line 33 of file Aibo3DControllerBehavior.h.

Referenced by Aibo3DControllerBehavior(), and registerData().

unsigned int Aibo3DControllerBehavior::pos [protected]
 

a counter to know when we've gotten 4 frames

Definition at line 34 of file Aibo3DControllerBehavior.h.

Referenced by Aibo3DControllerBehavior(), and registerData().

MotionManager::MC_ID Aibo3DControllerBehavior::rcontrol_id [protected]
 

remote controller motion command's id

Definition at line 27 of file Aibo3DControllerBehavior.h.

Referenced by Aibo3DControllerBehavior(), DoStart(), DoStop(), and updateRC().

float Aibo3DControllerBehavior::val[NumPIDJoints] [protected]
 

the value to use for each of the PID joints

Definition at line 32 of file Aibo3DControllerBehavior.h.

Referenced by Aibo3DControllerBehavior(), DoStart(), and updateRC().


The documentation for this class was generated from the following file:

Tekkotsu v2.2
Generated Tue Oct 19 14:20:14 2004 by Doxygen 1.3.9.1