Closed LoyVanBeek closed 5 years ago
Because openpose_ros is only called as a service and does not actively publish on a topic, we'll tick
diagnostic_updater in it's main service call.
For inspiration & reference, take a look at
In Jackal_base, there is a subscription to a status
topic, the message of which is stored in the statusCallback. When the diagnostic_updater updates, it triggers all the callbacks added in the constructor.
Each such callback does some checking and expands the DiagnosticStatus via a DiagnosticStatusWrapper, eg. like
stat.summary(diagnostic_msgs::DiagnosticStatus::OK, "I'm OK");
We can use the diagnostics to check if the Jetson board that runs OpenPose is performing OK or is even connected at all.