Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
#include <LocomotionEvent.h>
Inheritance diagram for LocomotionEvent:
An activate event will be sent when a potential source of motion is created, and a deactivate when it is destroyed. Status events will be sent at any change of direction/speed.
The source ID field will hold the MotionManager::MC_ID of the sending MotionCommand
Definition at line 13 of file LocomotionEvent.h.
Public Member Functions | |
LocomotionEvent & | setXYA (float X, float Y, float A) |
Allows you to set the new X, Y, and A components. | |
virtual unsigned int | getBinSize () const |
calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work. | |
virtual unsigned int | LoadBuffer (const char buf[], unsigned int len) |
Load from a saved buffer. | |
virtual unsigned int | SaveBuffer (char buf[], unsigned int len) const |
Save to a given buffer. | |
Constructors | |
LocomotionEvent () | |
constructor | |
LocomotionEvent (EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur=0) | |
constructor | |
LocomotionEvent (EventGeneratorID_t gid, unsigned int sid, EventTypeID_t tid, unsigned int dur, const std::string &n, float mag) | |
constructor | |
Public Attributes | |
float | x |
the new x component (body relative) | |
float | y |
the new y component (body relative) | |
float | a |
the new angular component (body relative) |
|
constructor
Definition at line 19 of file LocomotionEvent.h. |
|
constructor
Definition at line 20 of file LocomotionEvent.h. |
|
constructor
Definition at line 21 of file LocomotionEvent.h. |
|
calculates space needed to save - if you can't precisely add up the size, overestimate and things will still work.
Reimplemented from EventBase. Definition at line 32 of file LocomotionEvent.h. References a, LoadSave::creatorSize(), EventBase::getBinSize(), x, and y. |
|
Load from a saved buffer.
Reimplemented from EventBase. Definition at line 41 of file LocomotionEvent.h. References a, LoadSave::checkCreator(), LoadSave::decode(), EventBase::LoadBuffer(), x, and y. |
|
Save to a given buffer.
Reimplemented from EventBase. Definition at line 57 of file LocomotionEvent.h. References a, LoadSave::encode(), EventBase::SaveBuffer(), LoadSave::saveCreator(), x, and y. |
|
Allows you to set the new X, Y, and A components.
Definition at line 25 of file LocomotionEvent.h. |
|
the new angular component (body relative)
Definition at line 75 of file LocomotionEvent.h. |
|
the new x component (body relative)
Definition at line 73 of file LocomotionEvent.h. |
|
the new y component (body relative)
Definition at line 74 of file LocomotionEvent.h. |
Tekkotsu v1.4 |
Generated Sat Jul 19 00:09:02 2003 by Doxygen 1.3.2 |