42 #ifndef __RTT_ROSCLOCK_RTT_ROSCLOCK_SIM_CLOCK_ACTIVITY_H 43 #define __RTT_ROSCLOCK_RTT_ROSCLOCK_SIM_CLOCK_ACTIVITY_H 56 class SimClockActivityManager;
63 const std::string& name =
"SimClockActivity");
68 const std::string& name =
"SimClockActivity");
83 #if defined(RTT_VERSION_GTE) 84 #if RTT_VERSION_GTE(2,9,0) 124 #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()