10 typedef diagnostic_msgs::DiagnosticStatus
DS;
28 ROS_INFO(
"Starting initialization timer...");
42 swri::param(pnh,
"fibonacci_index", fibonacci_index_, 30);
45 diagnostic_updater_.
add(
46 "swri::Timer test",
this,
58 ROS_INFO(
"The %d-th number of the fibonacci sequence is %lu",
59 fibonacci_index_, number);
75 diagnostic_updater_.
update();
80 status.
summary(DS::OK,
"No errors reported.");
92 int main(
int argc,
char **argv)
void appendDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &status, const std::string &name, const int flags)
void handleDiagnosticsTimer(const ros::TimerEvent &ignored)
int main(int argc, char **argv)
void timerDiagnostics(du::DiagnosticStatusWrapper &status)
du::Updater diagnostic_updater_
void summary(unsigned char lvl, const std::string s)
void setHardwareID(const std::string &hwid)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
void add(const std::string &name, TaskFunction f)
diagnostic_msgs::DiagnosticStatus DS
ros::WallTimer init_timer_
WallTimer createWallTimer(WallDuration period, void(T::*callback)(const WallTimerEvent &), T *obj, bool oneshot=false, bool autostart=true) const
int super_slow_fibonacci(int x)
void param(swri::NodeHandle &nh, const std::string name, std::string &value, const std::string def, const std::string description)
void initialize(const ros::WallTimerEvent &ignored)
swri::Timer update_timer_
void handleUpdateTimer(const ros::TimerEvent &ignored)