49 stat.
summary(diagnostic_msgs::DiagnosticStatus::OK,
"No faults. ");
52 stat.
summary(diagnostic_msgs::DiagnosticStatus::OK,
"Action delayed, activation (reactivation) must be completed prior to renewed action. ");
55 stat.
summary(diagnostic_msgs::DiagnosticStatus::OK,
"Action delayed, mode change must be completed prior t continuing action. ");
58 stat.
summary(diagnostic_msgs::DiagnosticStatus::OK,
"The activation bit must be set prior to action. ");
61 stat.
summary(diagnostic_msgs::DiagnosticStatus::WARN,
"The communication chip is not ready (may be booting). ");
64 stat.
summary(diagnostic_msgs::DiagnosticStatus::WARN,
"Changing mode fault interference detected on scissor (for less than 20 sec). ");
67 stat.
summary(diagnostic_msgs::DiagnosticStatus::WARN,
"Automatic release is in progress. ");
70 stat.
summary(diagnostic_msgs::DiagnosticStatus::ERROR,
"Activation fault, verify that no interference or other error occurred. ");
73 stat.
summary(diagnostic_msgs::DiagnosticStatus::ERROR,
"Changing mode fault, interference detected on Scissor (for more than 20 sec). ");
76 stat.
summary(diagnostic_msgs::DiagnosticStatus::ERROR,
"Automatic release completed. Reset and activation is required. ");
79 stat.
summary(diagnostic_msgs::DiagnosticStatus::ERROR,
"Unknown fault");
89 driver_->getGripperStatus(&gACT, &gMOD, &gGTO, &gIMC, &gSTA);
92 stat.
add(
"Grasping Operation Mode Status",
toString(gMOD));
103 return "Gripper reset. ";
105 return "Gripper activation. ";
116 return "Basic mode. ";
118 return "Pinch mode. ";
120 return "Wide mode. ";
122 return "Scissor mode. ";
134 return "Stopped (or performing activation / grasping mode change / automatic release). ";
136 return "Go to Position Request. ";
148 return "Gripper is in reset (or automatic release) state. See Fault status if Gripper is activated. ";
150 return "Activation is in progress. ";
152 return "Mode change is in progress. ";
154 return "Activation and Mode change are complete. ";
165 return "Gripper is in motion towards requested position (only meaningful if ActionMode enabled). ";
167 return "Gripper is stopped. One or two fingers stopped before requested position. ";
169 return "Gripper is stopped. All fingers stopped before requested position. ";
171 return "Gripper is stopped. All fingers reached requested position." ;
184 return "Action delayed, activation (reactivation) must be completed prior to renewed action. ";
186 return "Action delayed, mode change must be completed prior t continuing action. ";
188 return "The activation bit must be set prior to action. ";
190 return "The communication chip is not ready (may be booting). ";
192 return "Changing mode fault interference detected on scissor (for less than 20 sec). ";
194 return "Automatic release is in progress. ";
196 return "Activation fault, verify that no interference or other error occurred. ";
198 return "Changing mode fault, interference detected on Scissor (for more than 20 sec). ";
200 return "Automatic release completed. Reset and activation is required. ";
202 return "Unknown fault. ";
void summary(unsigned char lvl, const std::string s)
void setHardwareID(const std::string &hwid)
void add(const std::string &name, TaskFunction f)
Robotiq3FGripperDiagnostics(boost::shared_ptr< robotiq_3f_gripper_control::Robotiq3FGripperAPI > driver, std::string name)
void getStatus(diagnostic_updater::DiagnosticStatusWrapper &stat)
diagnostic_updater::Updater diagnostics_
void add(const std::string &key, const T &val)
std::string toString(robotiq::InitializationMode status)
boost::shared_ptr< robotiq_3f_gripper_control::Robotiq3FGripperAPI > driver_