57 this->setTorque(0, 0);
58 this->setTorque(1, 0);
59 this->setTorque(2, 0);
74 return this->force_[0] == rhs.
force_[0] && this->force_[1] == rhs.
force_[1] && this->force_[2] == rhs.
force_[2]
75 && this->torque_[0] == rhs.
torque_[0] && this->torque_[1] == rhs.
torque_[1] && this->torque_[2] == rhs.
torque_[2];
82 LOG_COMM(
"Executing wrench state load");
84 if (buffer->
load(this->force_[0]) && buffer->
load(this->force_[1]) && buffer->
load(this->force_[2])
85 && buffer->
load(this->torque_[0]) && buffer->
load(this->torque_[1]) && buffer->
load(this->torque_[2]))
88 LOG_COMM(
"wrench state successfully loaded");
104 LOG_COMM(
"Executing wrench state unload");
105 if (buffer->
unload(this->torque_[2]) && buffer->
unload(this->torque_[1]) && buffer->
unload(this->torque_[0])
106 && buffer->
unload(this->force_[2]) && buffer->
unload(this->force_[1]) && buffer->
unload(this->force_[0]))
109 LOG_COMM(
"wrench state successfully unloaded");
114 LOG_ERROR(
"Failed to unload wrench state");
industrial::shared_types::shared_real force_[3]
Force.
Class encapsulated robot status data. The robot status data is meant to mirror the industrial_msgs/Ro...
#define LOG_COMM(format,...)
bool load(industrial::shared_types::shared_bool value)
#define LOG_ERROR(format,...)
industrial::shared_types::shared_real getForce(int idx)
Initializes a full robot status message.
industrial::shared_types::shared_real torque_[3]
Torque.
bool unload(industrial::shared_types::shared_bool &value)
industrial::shared_types::shared_real getTorque(int idx)