Public Member Functions | Private Attributes | List of all members
rtt_rosclock::SimClockActivity Class Reference

#include <rtt_rosclock_sim_clock_activity.h>

Inheritance diagram for rtt_rosclock::SimClockActivity:
Inheritance graph
[legend]

Public Member Functions

virtual bool breakLoop ()
 
virtual bool execute ()
 
virtual void finalize ()
 
virtual unsigned getCpuAffinity () const
 
virtual RTT::os::TimeService::ticks getLastExecutionTicks () const
 
virtual RTT::Seconds getPeriod () const
 
virtual bool initialize ()
 
virtual bool isActive () const
 
virtual bool isPeriodic () const
 
virtual bool isRunning () const
 
virtual void loop ()
 
virtual bool setCpuAffinity (unsigned cpu)
 
virtual bool setPeriod (RTT::Seconds s)
 
 SimClockActivity (RTT::base::RunnableInterface *run=0, const std::string &name="SimClockActivity")
 
 SimClockActivity (RTT::Seconds period, RTT::base::RunnableInterface *r=0, const std::string &name="SimClockActivity")
 
virtual bool start ()
 
virtual void step ()
 
virtual bool stop ()
 
virtual RTT::os::ThreadInterfacethread ()
 
virtual bool timeout ()
 
virtual bool trigger ()
 
virtual ~SimClockActivity ()
 
- Public Member Functions inherited from RTT::base::ActivityInterface
 ActivityInterface ()
 
 ActivityInterface (RunnableInterface *run)
 
virtual RunnableInterfacegetRunner () const
 
virtual bool run (RunnableInterface *r)
 
virtual ~ActivityInterface ()
 

Private Attributes

bool active_
 True if start() has been called. More...
 
RTT::os::TimeService::ticks last_
 The last time the activity was executed. More...
 
boost::shared_ptr< SimClockActivityManagermanager_
 Parent activity manager. More...
 
std::string name_
 
RTT::Seconds period_
 The desired minimum execution period. More...
 
bool running_
 True after start() has succeeded. More...
 

Additional Inherited Members

- Public Types inherited from RTT::base::ActivityInterface
typedef boost::shared_ptr< ActivityInterfaceshared_ptr
 
- Protected Member Functions inherited from RTT::base::ActivityInterface
void disableRun (RunnableInterface *caller)
 
- Protected Attributes inherited from RTT::base::ActivityInterface
RunnableInterfacerunner
 

Detailed Description

Definition at line 51 of file rtt_rosclock_sim_clock_activity.h.

Constructor & Destructor Documentation

SimClockActivity::SimClockActivity ( RTT::base::RunnableInterface run = 0,
const std::string &  name = "SimClockActivity" 
)

Definition at line 48 of file rtt_rosclock_sim_clock_activity.cpp.

SimClockActivity::SimClockActivity ( RTT::Seconds  period,
RTT::base::RunnableInterface r = 0,
const std::string &  name = "SimClockActivity" 
)

Definition at line 59 of file rtt_rosclock_sim_clock_activity.cpp.

SimClockActivity::~SimClockActivity ( )
virtual

Definition at line 70 of file rtt_rosclock_sim_clock_activity.cpp.

Member Function Documentation

bool SimClockActivity::breakLoop ( )
virtual

Definition at line 132 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::execute ( )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 195 of file rtt_rosclock_sim_clock_activity.cpp.

void SimClockActivity::finalize ( )
virtual

Definition at line 137 of file rtt_rosclock_sim_clock_activity.cpp.

unsigned SimClockActivity::getCpuAffinity ( ) const
virtual

Implements RTT::base::ActivityInterface.

Definition at line 95 of file rtt_rosclock_sim_clock_activity.cpp.

RTT::os::TimeService::ticks SimClockActivity::getLastExecutionTicks ( ) const
virtual

Definition at line 217 of file rtt_rosclock_sim_clock_activity.cpp.

RTT::Seconds SimClockActivity::getPeriod ( ) const
virtual

Implements RTT::base::ActivityInterface.

Definition at line 76 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::initialize ( )
virtual

Definition at line 110 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::isActive ( void  ) const
virtual

Implements RTT::base::ActivityInterface.

Definition at line 180 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::isPeriodic ( ) const
virtual

Implements RTT::base::ActivityInterface.

Definition at line 84 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::isRunning ( void  ) const
virtual

Implements RTT::base::ActivityInterface.

Definition at line 175 of file rtt_rosclock_sim_clock_activity.cpp.

void SimClockActivity::loop ( )
virtual

Definition at line 127 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::setCpuAffinity ( unsigned  cpu)
virtual

Implements RTT::base::ActivityInterface.

Definition at line 100 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::setPeriod ( RTT::Seconds  s)
virtual

Implements RTT::base::ActivityInterface.

Definition at line 89 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::start ( void  )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 141 of file rtt_rosclock_sim_clock_activity.cpp.

void SimClockActivity::step ( )
virtual

Definition at line 115 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::stop ( void  )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 161 of file rtt_rosclock_sim_clock_activity.cpp.

RTT::os::ThreadInterface * SimClockActivity::thread ( )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 105 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::timeout ( )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 190 of file rtt_rosclock_sim_clock_activity.cpp.

bool SimClockActivity::trigger ( )
virtual

Implements RTT::base::ActivityInterface.

Definition at line 185 of file rtt_rosclock_sim_clock_activity.cpp.

Member Data Documentation

bool rtt_rosclock::SimClockActivity::active_
private

True if start() has been called.

Definition at line 107 of file rtt_rosclock_sim_clock_activity.h.

RTT::os::TimeService::ticks rtt_rosclock::SimClockActivity::last_
private

The last time the activity was executed.

Definition at line 110 of file rtt_rosclock_sim_clock_activity.h.

boost::shared_ptr<SimClockActivityManager> rtt_rosclock::SimClockActivity::manager_
private

Parent activity manager.

Definition at line 113 of file rtt_rosclock_sim_clock_activity.h.

std::string rtt_rosclock::SimClockActivity::name_
private

Definition at line 98 of file rtt_rosclock_sim_clock_activity.h.

RTT::Seconds rtt_rosclock::SimClockActivity::period_
private

The desired minimum execution period.

Definition at line 101 of file rtt_rosclock_sim_clock_activity.h.

bool rtt_rosclock::SimClockActivity::running_
private

True after start() has succeeded.

Definition at line 104 of file rtt_rosclock_sim_clock_activity.h.


The documentation for this class was generated from the following files:


rtt_rosclock
Author(s):
autogenerated on Mon May 10 2021 02:45:33