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