Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/RobotStatus message. More...
#include <wrench.h>
Public Member Functions | |
unsigned int | byteLength () |
void | copyFrom (Wrench &src) |
Copies the passed in value. More... | |
industrial::shared_types::shared_real | getForce (int idx) |
Initializes a full robot status message. More... | |
industrial::shared_types::shared_real | getTorque (int idx) |
void | init () |
Initializes an empty robot status. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
bool | operator== (Wrench &rhs) |
== operator implementation More... | |
void | setForce (int idx, industrial::shared_types::shared_real val) |
void | setTorque (int idx, industrial::shared_types::shared_real val) |
bool | unload (industrial::byte_array::ByteArray *buffer) |
Wrench (void) | |
Default constructor. More... | |
~Wrench (void) | |
Destructor. More... | |
Private Attributes | |
industrial::shared_types::shared_real | force_ [3] |
Force. More... | |
industrial::shared_types::shared_real | torque_ [3] |
Torque. More... | |
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/RobotStatus message.
The byte representation of a robot status is as follows (in order lowest index to highest). The standard sizes are given, but can change based on type sizes:
member: type size drives_powered (industrial::shared_types::shared_int) 4 bytes e_stopped (industrial::shared_types::shared_int) 4 bytes error_code (industrial::shared_types::shared_int) 4 bytes in_error (industrial::shared_types::shared_int) 4 bytes in_motion (industrial::shared_types::shared_int) 4 bytes mode (industrial::shared_types::shared_int) 4 bytes motion_possible (industrial::shared_types::shared_int) 4 bytes
THIS CLASS IS NOT THREAD-SAFE
fsrobo_r_driver::simple_message::wrench::Wrench::Wrench | ( | void | ) |
fsrobo_r_driver::simple_message::wrench::Wrench::~Wrench | ( | void | ) |
Destructor.
Definition at line 47 of file wrench.cpp.
|
inlinevirtual |
Implements industrial::simple_serialize::SimpleSerialize.
void fsrobo_r_driver::simple_message::wrench::Wrench::copyFrom | ( | Wrench & | src | ) |
|
inline |
|
inline |
void fsrobo_r_driver::simple_message::wrench::Wrench::init | ( | ) |
Initializes an empty robot status.
Definition at line 52 of file wrench.cpp.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 78 of file wrench.cpp.
bool fsrobo_r_driver::simple_message::wrench::Wrench::operator== | ( | Wrench & | rhs | ) |
|
inline |
|
inline |
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 100 of file wrench.cpp.
|
private |
|
private |