52 namespace simple_message
54 namespace io_ctrl_message
70 if (!data.
unload(this->cmd_))
72 LOG_ERROR(
"Failed to unload WriteSingleIO data");
93 LOG_COMM(
"Executing WriteSingleIO message load");
94 if (!buffer->
load(this->cmd_))
96 LOG_ERROR(
"Failed to load WriteSingleIO message");
105 LOG_COMM(
"Executing WriteSingleIO message unload");
107 if (!buffer->
unload(this->cmd_))
109 LOG_ERROR(
"Failed to unload WriteSingleIO message");
void setMessageType(int message_type=industrial::simple_message::StandardMsgTypes::INVALID)
void init()
Initializes a empty write single io command.
Class encapsulated write single io data. Motoman specific interface to write a single IO element on t...
#define LOG_COMM(format,...)
bool unload(industrial::byte_array::ByteArray *buffer)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
void copyFrom(WriteSingleIO &src)
Copies the passed in value.
bool load(industrial::byte_array::ByteArray *buffer)
float data[ROS_MAX_JOINT]
void init()
Initializes a new message.
motoman::simple_message::io_ctrl::WriteSingleIO cmd_
industrial::byte_array::ByteArray & getData()
bool unload(industrial::shared_types::shared_bool &value)
~WriteSingleIOMessage(void)
Destructor.
WriteSingleIOMessage(void)
Default constructor.