| Tekkotsu Homepage | Demos | Overview | Downloads | Dev. Resources | Reference | Credits |
WorldStateSerializerBehavior Class Reference#include <WorldStateSerializerBehavior.h>
Inheritance diagram for WorldStateSerializerBehavior: ![]() Detailed DescriptionCopies WorldState into a buffer for transmission over the network.To determine the communication protocol, just look in the processEvent() function - it's pretty straightforward binary copy of values. Protocol:
Definition at line 32 of file WorldStateSerializerBehavior.h.
Constructor & Destructor Documentation
don't call
Member Function Documentation
template<class T>
writes num copies of T from src to dst and advances dst by num * sizeof(T) doesn't do any byte swapping, so this is only used if LoadSave indicates no byte swapping is needed Definition at line 63 of file WorldStateSerializerBehavior.h.
template<class T>
writes value to dst and advances dst by sizeof(T) doesn't do any byte swapping, so this is only used if LoadSave indicates no byte swapping is needed Definition at line 55 of file WorldStateSerializerBehavior.h. Referenced by processEvent().
starts listening for sensor update events
Reimplemented from BehaviorBase. Definition at line 14 of file WorldStateSerializerBehavior.cc.
stops listening for events
Reimplemented from BehaviorBase. Definition at line 33 of file WorldStateSerializerBehavior.cc.
Gives a short description of what this class of behaviors does... you should override this (but don't have to). If you do override this, also consider overriding getDescription() to return it Reimplemented from BehaviorBase. Definition at line 39 of file WorldStateSerializerBehavior.h. Referenced by getDescription().
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 44 of file WorldStateSerializerBehavior.h.
returns string corresponding to the Java GUI which should be launched
Definition at line 47 of file WorldStateSerializerBehavior.h.
returns port number the Java GUI should connect to
Definition at line 49 of file WorldStateSerializerBehavior.h. Referenced by DoStart().
don't call
core functionality - performs serialization, sends to sockets
Reimplemented from BehaviorBase. Definition at line 46 of file WorldStateSerializerBehavior.cc.
Member Data Documentation
the time that the last event was processed
Definition at line 70 of file WorldStateSerializerBehavior.h. Referenced by processEvent().
socket for sending current joint data
Definition at line 68 of file WorldStateSerializerBehavior.h. Referenced by DoStart(), DoStop(), and processEvent().
socket for sending current PID info
Definition at line 69 of file WorldStateSerializerBehavior.h. Referenced by DoStart(), DoStop(), and processEvent().
The documentation for this class was generated from the following files: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Tekkotsu v3.0 |
Generated Wed Oct 4 00:05:21 2006 by Doxygen 1.4.7 |