50 namespace simple_message
52 namespace motion_ctrl_message
68 if (!data.
unload(this->cmd_))
70 LOG_ERROR(
"Failed to unload MotionCtrl data");
91 LOG_COMM(
"Executing MotionCtrl message load");
92 if (!buffer->
load(this->cmd_))
94 LOG_ERROR(
"Failed to load MotionCtrl message");
103 LOG_COMM(
"Executing MotionCtrl message unload");
105 if (!buffer->
unload(this->cmd_))
107 LOG_ERROR(
"Failed to unload MotionCtrl message");
void setMessageType(int message_type=industrial::simple_message::StandardMsgTypes::INVALID)
bool load(industrial::byte_array::ByteArray *buffer)
~MotionCtrlMessage(void)
Destructor.
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
float data[ROS_MAX_JOINT]
bool unload(industrial::byte_array::ByteArray *buffer)
void init()
Initializes a new message.
industrial::byte_array::ByteArray & getData()
MotionCtrlMessage(void)
Default constructor.
void init()
Initializes a empty motion control command.
bool unload(industrial::shared_types::shared_bool &value)
void copyFrom(MotionCtrl &src)
Copies the passed in value.
Class encapsulated motion control data. These control messages are required to download command-traje...
motoman::simple_message::motion_ctrl::MotionCtrl cmd_