35 #ifndef __RTT_ROSCLOCK_RTT_ROSCLOCK_SIM_CLOCK_ACTIVITY_H 36 #define __RTT_ROSCLOCK_RTT_ROSCLOCK_SIM_CLOCK_ACTIVITY_H 49 class SimClockActivityManager;
56 const std::string& name =
"SimClockActivity");
61 const std::string& name =
"SimClockActivity");
76 #if defined(RTT_VERSION_GTE) 77 #if RTT_VERSION_GTE(2,9,0) 117 #endif // ifndef __RTT_ROSCLOCK_RTT_ROSCLOCK_SIM_CLOCK_ACTIVITY_H
virtual bool isPeriodic() const
virtual bool initialize()
bool active_
True if start() has been called.
RTT::Seconds period_
The desired minimum execution period.
bool running_
True after start() has succeeded.
SimClockActivity(RTT::base::RunnableInterface *run=0, const std::string &name="SimClockActivity")
virtual bool isActive() const
virtual unsigned getCpuAffinity() const
virtual bool run(RunnableInterface *r)
virtual RTT::os::TimeService::ticks getLastExecutionTicks() const
virtual bool setCpuAffinity(unsigned cpu)
virtual ~SimClockActivity()
virtual bool isRunning() const
virtual RTT::Seconds getPeriod() const
boost::shared_ptr< SimClockActivityManager > manager_
Parent activity manager.
RTT::os::TimeService::ticks last_
The last time the activity was executed.
virtual bool setPeriod(RTT::Seconds s)
virtual RTT::os::ThreadInterface * thread()