![]() |
Roboid Control for C++
|
Message to communicate the pose of the thing The pose is in local space relative to the parent. If there is not parent (the thing is a root thing), the pose will be in world space.
#include <PoseMsg.h>
Public Member Functions | |
PoseMsg (unsigned char networkId, unsigned char thingId, unsigned char poseType, Spherical16 position, SwingTwist16 orientation, Spherical16 linearVelocity=Spherical16(), Spherical16 angularVelocity=Spherical16()) | |
Create a new message for sending. | |
PoseMsg (const char *buffer) | |
Create a message for receiving. | |
virtual | ~PoseMsg () |
Destructor for the message. | |
virtual unsigned char | Serialize (char *buffer) override |
Serialize the message into a byte array for sending. | |
PoseMsg::PoseMsg | ( | unsigned char | networkId, |
unsigned char | thingId, | ||
unsigned char | poseType, | ||
Spherical16 | position, | ||
SwingTwist16 | orientation, | ||
Spherical16 | linearVelocity = Spherical16() , |
||
Spherical16 | angularVelocity = Spherical16() |
||
) |
Create a new message for sending.
networkId | The network ID of the thing |
thingId | The ID of the thing |
poseType | Bit pattern stating which pose components are available |
position | The position of the thing in local space in meters |
orientation | The orientation of the thing in local space |
linearVelocity | The linear velocity of the thing in local space in meters per second |
angularVelocity | The angular velocity of the thing in local space |
PoseMsg::PoseMsg | ( | const char * | buffer | ) |
Create a message for receiving.
buffer | The byte array to parse |
|
overridevirtual |
Serialize the message into a byte array for sending.
buffer | The buffer to serilize into |
Reimplemented from Passer::RoboidControl::IMessage.