Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/RobotStatus message. More...
#include <io_state.h>
Public Member Functions | |
unsigned int | byteLength () |
void | copyFrom (IOState &src) |
Copies the passed in value. More... | |
industrial::shared_types::shared_int | getAnalog (int idx) |
industrial::shared_types::shared_int | getDigital (int idx) |
Initializes a full robot status message. More... | |
void | init () |
Initializes an empty robot status. More... | |
IOState (void) | |
Default constructor. More... | |
bool | load (industrial::byte_array::ByteArray *buffer) |
bool | operator== (IOState &rhs) |
== operator implementation More... | |
void | setAnalog (int idx, industrial::shared_types::shared_int val) |
void | setDigital (int idx, industrial::shared_types::shared_int val) |
bool | unload (industrial::byte_array::ByteArray *buffer) |
~IOState (void) | |
Destructor. More... | |
Private Attributes | |
industrial::shared_types::shared_int | analog_ [1] |
Analog. More... | |
industrial::shared_types::shared_int | digital_ [2] |
Digital. 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
Definition at line 70 of file io_state.h.
fsrobo_r_driver::simple_message::io_state::IOState::IOState | ( | void | ) |
fsrobo_r_driver::simple_message::io_state::IOState::~IOState | ( | void | ) |
Destructor.
Definition at line 47 of file io_state.cpp.
|
inlinevirtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 137 of file io_state.h.
void fsrobo_r_driver::simple_message::io_state::IOState::copyFrom | ( | IOState & | src | ) |
Copies the passed in value.
src | (value to copy) |
Definition at line 59 of file io_state.cpp.
|
inline |
Definition at line 105 of file io_state.h.
|
inline |
Initializes a full robot status message.
Definition at line 100 of file io_state.h.
void fsrobo_r_driver::simple_message::io_state::IOState::init | ( | ) |
Initializes an empty robot status.
Definition at line 52 of file io_state.cpp.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 72 of file io_state.cpp.
bool fsrobo_r_driver::simple_message::io_state::IOState::operator== | ( | IOState & | rhs | ) |
|
inline |
Definition at line 115 of file io_state.h.
|
inline |
Definition at line 110 of file io_state.h.
|
virtual |
Implements industrial::simple_serialize::SimpleSerialize.
Definition at line 93 of file io_state.cpp.
|
private |
Analog.
Definition at line 151 of file io_state.h.
|
private |
Digital.
Definition at line 146 of file io_state.h.