37 boost::function<
void(
void)> on_timeout)
38 : duration_(d.sec, d.nsec), on_timeout_(on_timeout)
43 boost::function<
void(
void)> on_timeout)
boost::function< void(void)> on_timeout_
void timerCallback(const ros::SteadyTimerEvent &e)
SteadyTimer createSteadyTimer(WallDuration period, void(T::*callback)(const SteadyTimerEvent &), T *obj, bool oneshot=false, bool autostart=true) const
Timeout(const ros::Duration &d, boost::function< void(void)> on_timeout=boost::function< void(void)>())
ros::WallDuration duration_
ros::SteadyTime deadline_
void setDuration(const ros::Duration &d)