42 IOState::IOState(
void)
47 IOState::~IOState(
void)
54 this->setDigital(0, 0);
55 this->setDigital(1, 0);
56 this->setAnalog(0, 0);
68 return this->digital_[0] == rhs.
digital_[0] && this->digital_[1] == rhs.
digital_[1]
69 && this->analog_[0] == rhs.
analog_[0];
76 LOG_COMM(
"Executing I/O state load");
78 if (buffer->
load(this->digital_[0]) && buffer->
load(this->digital_[1]) && buffer->
load(this->analog_[0]))
81 LOG_COMM(
"I/O state successfully loaded");
97 LOG_COMM(
"Executing I/O state unload");
98 if (buffer->
unload(this->analog_[0]) && buffer->
unload(this->digital_[1]) && buffer->
unload(this->digital_[0]))
101 LOG_COMM(
"I/O state successfully unloaded");
industrial::shared_types::shared_int getAnalog(int idx)
industrial::shared_types::shared_int getDigital(int idx)
Initializes a full robot status message.
#define LOG_COMM(format,...)
industrial::shared_types::shared_int digital_[2]
Digital.
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/Ro...
industrial::shared_types::shared_int analog_[1]
Analog.
bool unload(industrial::shared_types::shared_bool &value)