Public Member Functions | Private Member Functions | Private Attributes | List of all members
RTC::hrpExecutionContext Class Reference

#include <hrpEC.h>

Inheritance diagram for RTC::hrpExecutionContext:
Inheritance graph
[legend]

Public Member Functions

void activate ()
 
bool enterRT ()
 
bool exitRT ()
 
OpenHRP::ExecutionProfileService::ComponentProfile getComponentProfile (RTC::LightweightRTObject_ptr obj)
 
OpenHRP::ExecutionProfileService::Profile * getProfile ()
 
 hrpExecutionContext ()
 
void resetProfile ()
 
virtual int svc (void)
 
bool waitForNextPeriod ()
 
virtual ~hrpExecutionContext ()
 
- Public Member Functions inherited from RTC::PeriodicExecutionContext
virtual ReturnCode_t activate_component (LightweightRTObject_ptr comp)
 
virtual ReturnCode_t add_component (LightweightRTObject_ptr comp)
 
virtual RTC::ReturnCode_t bindComponent (RTObject_impl *rtc)
 
virtual int close (unsigned long flags)
 
virtual ReturnCode_t deactivate_component (LightweightRTObject_ptr comp)
 
virtual LifeCycleState get_component_state (LightweightRTObject_ptr comp)
 
virtual ExecutionKind get_kind (void)
 
virtual ExecutionContextProfileget_profile (void)
 
virtual CORBA::Double get_rate (void)
 
virtual ExecutionContextService_ptr getObjRef (void)
 
virtual CORBA::Boolean is_running (void)
 
virtual int open (void *args)
 
 PeriodicExecutionContext ()
 
 PeriodicExecutionContext (OpenRTM::DataFlowComponent_ptr owner, double rate=1000.0)
 
virtual ReturnCode_t remove_component (LightweightRTObject_ptr comp)
 
virtual ReturnCode_t reset_component (LightweightRTObject_ptr comp)
 
virtual ReturnCode_t set_rate (CORBA::Double rate)
 
virtual ReturnCode_t start (void)
 
virtual ReturnCode_t stop (void)
 
virtual ~PeriodicExecutionContext (void)
 
- Public Member Functions inherited from RTC::ExecutionContextBase
virtual void tick ()
 
virtual ~ExecutionContextBase (void)
 
- Public Member Functions inherited from coil::Task
virtual void finalize ()
 
virtual void finalize ()
 
virtual void reset ()
 
virtual void reset ()
 
virtual int resume (void)
 
virtual int resume (void)
 
virtual int suspend (void)
 
virtual int suspend (void)
 
 Task ()
 
 Task ()
 
virtual int wait (void)
 
virtual int wait (void)
 
virtual ~Task ()
 
virtual ~Task ()
 

Private Member Functions

template<class T >
void getProperty (coil::Properties &prop, const char *key, T &value)
 
void printRTCProcessingTime (std::vector< double > &processes)
 
int svc_wrapped (void)
 

Private Attributes

int m_cpu
 
int m_priority
 
OpenHRP::ExecutionProfileService::Profile m_profile
 
volatile bool m_thread_pending
 
struct timeval m_tv
 
std::vector< std::string > rtc_names
 

Additional Inherited Members

- Static Public Member Functions inherited from coil::Task
static voidsvc_run (void *args=0)
 
static unsigned int WINAPI svc_run (void *args=0)
 
- Protected Types inherited from RTC::PeriodicExecutionContext
typedef std::vector< Comp >::iterator CompItr
 
typedef RTC_Utils::StateHolder< ExecContextStateECStates
 
typedef LifeCycleState ExecContextState
 
- Protected Attributes inherited from RTC::PeriodicExecutionContext
std::vector< Comp > m_comps
 
bool m_nowait
 
coil::TimeValue m_period
 
ExecutionContextProfile m_profile
 
coil::Mutex m_profileMutex
 
ExecutionContextService_var m_ref
 
bool m_running
 
bool m_svc
 
Worker m_worker
 
Logger rtclog
 

Detailed Description

Definition at line 22 of file hrpEC.h.

Constructor & Destructor Documentation

◆ hrpExecutionContext()

RTC::hrpExecutionContext::hrpExecutionContext ( )

Definition at line 10 of file hrpEC-art.cpp.

◆ ~hrpExecutionContext()

RTC::hrpExecutionContext::~hrpExecutionContext ( )
virtual

Definition at line 12 of file hrpEC-common.cpp.

Member Function Documentation

◆ activate()

void RTC::hrpExecutionContext::activate ( )
virtual

Reimplemented from coil::Task.

Definition at line 203 of file hrpEC-common.cpp.

◆ enterRT()

bool RTC::hrpExecutionContext::enterRT ( )

Definition at line 37 of file hrpEC-art.cpp.

◆ exitRT()

bool RTC::hrpExecutionContext::exitRT ( )

Definition at line 47 of file hrpEC-art.cpp.

◆ getComponentProfile()

OpenHRP::ExecutionProfileService::ComponentProfile RTC::hrpExecutionContext::getComponentProfile ( RTC::LightweightRTObject_ptr  obj)

Definition at line 186 of file hrpEC-common.cpp.

◆ getProfile()

OpenHRP::ExecutionProfileService::Profile * RTC::hrpExecutionContext::getProfile ( )

Definition at line 178 of file hrpEC-common.cpp.

◆ getProperty()

template<class T >
void RTC::hrpExecutionContext::getProperty ( coil::Properties prop,
const char *  key,
T &  value 
)
inlineprivate

Definition at line 49 of file hrpEC.h.

◆ printRTCProcessingTime()

void RTC::hrpExecutionContext::printRTCProcessingTime ( std::vector< double > &  processes)
inlineprivate

Definition at line 60 of file hrpEC.h.

◆ resetProfile()

void RTC::hrpExecutionContext::resetProfile ( )

Definition at line 209 of file hrpEC-common.cpp.

◆ svc()

int RTC::hrpExecutionContext::svc ( void  )
virtual

Reimplemented from RTC::PeriodicExecutionContext.

Definition at line 18 of file hrpEC-common.cpp.

◆ svc_wrapped()

int RTC::hrpExecutionContext::svc_wrapped ( void  )
private

Definition at line 24 of file hrpEC-common.cpp.

◆ waitForNextPeriod()

bool RTC::hrpExecutionContext::waitForNextPeriod ( )

Definition at line 25 of file hrpEC-art.cpp.

Member Data Documentation

◆ m_cpu

int RTC::hrpExecutionContext::m_cpu
private

Definition at line 73 of file hrpEC.h.

◆ m_priority

int RTC::hrpExecutionContext::m_priority
private

Definition at line 72 of file hrpEC.h.

◆ m_profile

OpenHRP::ExecutionProfileService::Profile RTC::hrpExecutionContext::m_profile
private

Definition at line 70 of file hrpEC.h.

◆ m_thread_pending

volatile bool RTC::hrpExecutionContext::m_thread_pending
private

Definition at line 75 of file hrpEC.h.

◆ m_tv

struct timeval RTC::hrpExecutionContext::m_tv
private

Definition at line 71 of file hrpEC.h.

◆ rtc_names

std::vector<std::string> RTC::hrpExecutionContext::rtc_names
private

Definition at line 74 of file hrpEC.h.


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


hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Sat Dec 17 2022 03:52:22