42 int main(
int argc,
char **argv)
44 ros::init(argc, argv,
"diagnostic_aggregator");
60 ROS_FATAL(
"Diagnostic aggregator node caught exception. Aborting. %s", e.what());
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
int main(int argc, char **argv)
double getPubRate() const
Publish rate defaults to 1Hz, but can be set with ~pub_rate param.
bool ok() const
True if the NodeHandle reports OK.
Aggregator processes /diagnostics, republishes on /diagnostics_agg.
void publishData()
Processes, publishes data. Should be called at pub_rate.
ROSCPP_DECL void spinOnce()