41 namespace io_control_message
58 if (!data.
unload(this->cmd_))
81 LOG_COMM(
"Executing SetIO message load");
82 if (!buffer->
load(this->cmd_))
84 LOG_ERROR(
"Failed to load SetIO message");
93 LOG_COMM(
"Executing SetIO message unload");
95 if (!buffer->
unload(this->cmd_))
97 LOG_ERROR(
"Failed to unload SetIO message");
void setMessageType(int message_type=industrial::simple_message::StandardMsgTypes::INVALID)
void init()
Initializes a empty write single io command.
~SetIOMessage(void)
Destructor.
SetIOMessage(void)
Default constructor.
bool unload(industrial::byte_array::ByteArray *buffer)
#define LOG_COMM(format,...)
bool load(industrial::byte_array::ByteArray *buffer)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
void init()
Initializes a new message.
void copyFrom(SetIO &src)
Copies the passed in value.
industrial::byte_array::ByteArray & getData()
Class encapsulated write single io data. FSRobo-R specific interface to set IO element on the control...
bool unload(industrial::shared_types::shared_bool &value)
fsrobo_r_driver::simple_message::io_control::SetIO cmd_