43 #include <boost/signals2.hpp>
45 #include <condition_variable>
96 boost::signals2::signal <void() > callbacks_;
103 std::thread timer_thread_;
104 std::condition_variable condition_;
105 std::mutex condition_mutex_;
Timer class that invokes registered callback methods periodically.
void stop()
Stop the Trigger.
TimeTrigger(double interval_seconds=1.0)
Timer class that calls a callback method periodically.
void setInterval(double interval_seconds)
Resets the timer interval.
void start()
Start the Trigger.
boost::signals2::connection registerCallback(const callback_type &callback)
registers a callback
std::function< void()> callback_type
TimeTrigger(double interval_seconds, const callback_type &callback)
Timer class that calls a callback method periodically.
~TimeTrigger()
Destructor.
Defines all the PCL and non-PCL macros used.