39 #ifndef PCL_COMMON_TIME_TRIGGER_H_
40 #define PCL_COMMON_TIME_TRIGGER_H_
42 #include <pcl/pcl_macros.h>
44 #include <boost/function.hpp>
45 #include <boost/thread.hpp>
46 #include <boost/signals2.hpp>
63 TimeTrigger (
double interval_seconds,
const callback_type& callback);
77 boost::signals2::connection registerCallback (
const callback_type& callback);
83 setInterval (
double interval_seconds);
95 boost::signals2::signal <void() > callbacks_;
102 boost::thread timer_thread_;
103 boost::condition_variable condition_;
104 boost::mutex condition_mutex_;
Timer class that invokes registered callback methods periodically.
boost::function< void() > callback_type