39 namespace set_tool_offset
53 this->
init(0, 0, 0, 0, 0, 0);
78 bool rslt = this->
x_ == rhs.
x_ &&
90 LOG_COMM(
"Executing SetToolOffset command load");
92 if (!buffer->
load(this->x_))
94 LOG_ERROR(
"Failed to load SetToolOffset x");
98 if (!buffer->
load(this->y_))
100 LOG_ERROR(
"Failed to load SetToolOffset y");
104 if (!buffer->
load(this->z_))
106 LOG_ERROR(
"Failed to load SetToolOffset z");
110 if (!buffer->
load(this->rz_))
112 LOG_ERROR(
"Failed to load SetToolOffset rz");
116 if (!buffer->
load(this->ry_))
118 LOG_ERROR(
"Failed to load SetToolOffset ry");
122 if (!buffer->
load(this->rx_))
124 LOG_ERROR(
"Failed to load SetToolOffset rx");
128 LOG_COMM(
"SetToolOffset data successfully loaded");
134 LOG_COMM(
"Executing SetToolOffset command unload");
136 if (!buffer->
unload(this->x_)) {
137 LOG_ERROR(
"Failed to unload SetToolOffset x");
141 if (!buffer->
unload(this->y_)) {
142 LOG_ERROR(
"Failed to unload SetToolOffset y");
146 if (!buffer->
unload(this->z_)) {
147 LOG_ERROR(
"Failed to unload SetToolOffset z");
151 if (!buffer->
unload(this->rz_)) {
152 LOG_ERROR(
"Failed to unload SetToolOffset rz");
156 if (!buffer->
unload(this->ry_)) {
157 LOG_ERROR(
"Failed to unload SetToolOffset ry");
161 if (!buffer->
unload(this->rx_)) {
162 LOG_ERROR(
"Failed to unload SetToolOffset rx");
166 LOG_COMM(
"SetToolOffset data successfully unloaded");
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
bool unload(industrial::shared_types::shared_bool &value)