Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <WorldStateSerializerBehavior.h>
Inheritance diagram for WorldStateSerializerBehavior:
To determine the communication protocol, just look in the processEvent() function - it's pretty straightforward.
Definition at line 13 of file WorldStateSerializerBehavior.h.
Public Member Functions | |
WorldStateSerializerBehavior () | |
constructor | |
virtual void | DoStart () |
starts listening for sensor update events | |
virtual void | DoStop () |
stops listening for events | |
virtual void | processEvent (const EventBase &e) |
core functionality - performs serialization, sends to sockets | |
virtual std::string | getName () const |
Identifies the behavior in menus and such. | |
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). | |
Static Protected Member Functions | |
template<class T> void | encode (char **dst, const T &value) |
writes value to dst and advances dst | |
template<class T> void | encode (char **dst, const T *src, int num) |
writes length bytes from src to dst | |
Protected Attributes | |
Socket * | wsJoints |
socket for sending current joint data | |
Socket * | wsPIDs |
socket for sending current PID info | |
Private Member Functions | |
WorldStateSerializerBehavior (const WorldStateSerializerBehavior &) | |
don't call | |
WorldStateSerializerBehavior & | operator= (const WorldStateSerializerBehavior &) |
don't call |
|
constructor
Definition at line 7 of file WorldStateSerializerBehavior.cc. |
|
don't call
|
|
starts listening for sensor update events
Reimplemented from BehaviorBase. Definition at line 18 of file WorldStateSerializerBehavior.cc. |
|
stops listening for events
Reimplemented from BehaviorBase. Definition at line 23 of file WorldStateSerializerBehavior.cc. |
|
writes length bytes from src to dst
Definition at line 39 of file WorldStateSerializerBehavior.h. |
|
writes value to dst and advances dst
Definition at line 30 of file WorldStateSerializerBehavior.h. Referenced by processEvent(). |
|
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 21 of file WorldStateSerializerBehavior.h. |
|
Identifies the behavior in menus and such.
Implements BehaviorBase. Definition at line 20 of file WorldStateSerializerBehavior.h. |
|
don't call
|
|
core functionality - performs serialization, sends to sockets
Reimplemented from BehaviorBase. Definition at line 28 of file WorldStateSerializerBehavior.cc. |
|
socket for sending current joint data
Definition at line 44 of file WorldStateSerializerBehavior.h. Referenced by processEvent(), and WorldStateSerializerBehavior(). |
|
socket for sending current PID info
Definition at line 45 of file WorldStateSerializerBehavior.h. Referenced by processEvent(), and WorldStateSerializerBehavior(). |
Tekkotsu v2.0 |
Generated Wed Jan 21 03:23:34 2004 by Doxygen 1.3.4 |