Class encapsulated posture data. FSRobo-R specific interface to posture on the controller. More...
#include <posture.h>
Public Member Functions | |
unsigned int | byteLength () |
void | copyFrom (Posture &src) |
Copies the passed in value. More... | |
industrial::shared_types::shared_int | getPosture () |
Returns the posture. More... | |
void | init () |
Initializes a empty posture command. More... | |
void | init (industrial::shared_types::shared_int posture) |
Initializes a complete posture command. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
bool | operator== (Posture &rhs) |
== operator implementation More... | |
Posture (void) | |
Default constructor. More... | |
void | setPosture (industrial::shared_types::shared_int posture) |
Set posture. More... | |
bool | unload (industrial::byte_array::ByteArray *buffer) |
~Posture (void) | |
Destructor. More... | |
Private Attributes | |
industrial::shared_types::shared_int | posture_ |
Posture. More... | |
Class encapsulated posture data. FSRobo-R specific interface to posture on the controller.
The byte representation of a posture command is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:
member: type size posture (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
fsrobo_r_driver::simple_message::posture::Posture::Posture | ( | void | ) |
fsrobo_r_driver::simple_message::posture::Posture::~Posture | ( | void | ) |
Destructor.
Definition at line 48 of file posture.cpp.
|
inlinevirtual |
Implements industrial::simple_serialize::SimpleSerialize.
void fsrobo_r_driver::simple_message::posture::Posture::copyFrom | ( | Posture & | src | ) |
Copies the passed in value.
src | (value to copy) |
Definition at line 62 of file posture.cpp.
|
inline |
void fsrobo_r_driver::simple_message::posture::Posture::init | ( | ) |
Initializes a empty posture command.
Definition at line 52 of file posture.cpp.
void fsrobo_r_driver::simple_message::posture::Posture::init | ( | industrial::shared_types::shared_int | posture | ) |
Initializes a complete posture command.
Definition at line 57 of file posture.cpp.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 74 of file posture.cpp.
bool fsrobo_r_driver::simple_message::posture::Posture::operator== | ( | Posture & | rhs | ) |
|
inline |
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 88 of file posture.cpp.
|
private |