RoboidControl
|
Interface for synchronizaing state between clients across a network. More...
#include <NetworkSync.h>
Public Types | |
typedef void(* | Buffer) (UInt8 *buffer, UInt16 bufferSize) |
Public Member Functions | |
NetworkSync () | |
virtual void | NetworkUpdate (Roboid *roboid)=0 |
Retreive and send the roboid state. | |
virtual void | DestroyObject (InterestingThing *obj)=0 |
Inform that the given object is no longer being tracked. | |
virtual void | NewObject (InterestingThing *obj) |
void | ReceiveMessage (Roboid *roboid, unsigned char bytecount) |
void | ReceiveNetworkId () |
void | SendInvestigateThing (InterestingThing *thing) |
void | SendPoseMsg (Buffer sendBuffer, Roboid *roboid) |
void | SendDestroyObject (Buffer sendBuffer, InterestingThing *obj) |
void | PublishNewObject () |
void | PublishTrackedObjects (Buffer sendBuffer, InterestingThing **objects) |
virtual void | SendPosition (Vector3 worldPosition) |
virtual void | SendPose (Vector3 worldPosition, Quaternion worldOrientation) |
Public Attributes | |
unsigned char | networkId |
Static Public Attributes | |
static const unsigned char | PoseMsg = 0x10 |
The id of a Pose message. | |
static const unsigned char | PoseTypeMsg = 0x11 |
static const unsigned char | RelativePoseMsg = 0x12 |
static const unsigned char | Pose_Position = 0x01 |
A bit pattern for the pose, stating that this message contains a position in world coordinates. | |
static const unsigned char | Pose_Orientation = 0x02 |
A bit pattern for the pose, stating that this message contains an orientation in world coordinates. | |
static const unsigned char | Pose_LinearVelocity = 0x04 |
A bit pattern for the pose, stating that this messsage contains a linear velocity in world coordinates. | |
static const char | Pose_AngularVelocity = 0x08 |
A bit pattern for the pose, stating that this message contains an angular velocity in world coordinates. | |
static const unsigned char | DestroyMsg = 0x20 |
static const unsigned char | AngVelocity2DMsg = 0x46 |
static const unsigned char | Position2DMsg = 0x61 |
static const unsigned char | Velocity2DMsg = 0x62 |
static const unsigned char | CreateMsg = 0x80 |
static const unsigned char | InvestigateMsg = 0x81 |
static const unsigned char | ClientMsg = 0xA0 |
static const unsigned char | NetworkIdMsg = 0xA1 |
Protected Member Functions | |
void | PublishTrackedObject (Buffer sendBuffer, InterestingThing *object) |
void | PublishRelativeObject (Buffer sendBuffer, UInt8 parentId, InterestingThing *object) |
void | SendSingle100 (unsigned char *data, unsigned int startIndex, float value) |
void | SendInt32 (unsigned char *data, unsigned int startIndex, Int32 value) |
void | SendAngle8 (unsigned char *data, unsigned int startIndex, const float value) |
void | SendVector3 (unsigned char *data, unsigned char *startIndex, const Vector3 v) |
void | SendQuaternion (unsigned char *data, const int startIndex, const Quaternion q) |
void | SendPolar (unsigned char *data, unsigned char *startIndex, Polar p) |
void | SendSpherical (unsigned char *data, int startIndex, Spherical s) |
void | SendQuat32 (unsigned char *data, unsigned char *startIndex, const Quaternion q) |
virtual void | SendBuffer (unsigned char bufferSize) |
void | PublishClient () |
Protected Attributes | |
NetworkPerception * | networkPerception |
unsigned char * | buffer |
Interface for synchronizaing state between clients across a network.
NetworkSync::NetworkSync | ( | ) |
|
pure virtual |
Retreive and send the roboid state.
roboid | The roboid for which the state is updated |
|
pure virtual |
Inform that the given object is no longer being tracked.
obj |
|
inlinevirtual |
void NetworkSync::ReceiveMessage | ( | Roboid * | roboid, |
unsigned char | bytecount | ||
) |
void NetworkSync::ReceiveNetworkId | ( | ) |
void NetworkSync::SendInvestigateThing | ( | InterestingThing * | thing | ) |
void NetworkSync::SendDestroyObject | ( | Buffer | sendBuffer, |
InterestingThing * | obj | ||
) |
void Passer::RoboidControl::NetworkSync::PublishNewObject | ( | ) |
void NetworkSync::PublishTrackedObjects | ( | Buffer | sendBuffer, |
InterestingThing ** | objects | ||
) |
|
inlinevirtual |
|
inlinevirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
unsigned char Passer::RoboidControl::NetworkSync::networkId |
|
static |
The id of a Pose message.
|
static |
|
static |
|
static |
A bit pattern for the pose, stating that this message contains a position in world coordinates.
|
static |
A bit pattern for the pose, stating that this message contains an orientation in world coordinates.
|
static |
A bit pattern for the pose, stating that this messsage contains a linear velocity in world coordinates.
|
static |
A bit pattern for the pose, stating that this message contains an angular velocity in world coordinates.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
|
protected |