19 #ifndef RTC_EXECUTIONCONTEXTPROFILE_H 20 #define RTC_EXECUTIONCONTEXTPROFILE_H 23 #include <coil/Properties.h> 25 #include <rtm/idl/RTCStub.h> 112 void setObjRef(RTC::ExecutionContextService_ptr ec_ptr);
133 RTC::ExecutionContextService_ptr
getObjRef()
const;
168 RTC::ReturnCode_t
setRate(
double rate);
169 RTC::ReturnCode_t
setPeriod(std::chrono::nanoseconds period);
192 std::chrono::nanoseconds
getPeriod()
const;
240 RTC::ReturnCode_t
setKind(RTC::ExecutionKind kind);
261 RTC::ExecutionKind
getKind()
const;
482 const RTC::ExecutionContextProfile&
getProfile()
const;
534 RTC::ExecutionContextProfile m_profile;
543 mutable std::mutex m_profileMutex;
552 std::chrono::nanoseconds m_period;
561 RTC::ExecutionContextService_var m_ref;
563 class find_participant
565 RTC::RTObject_var m_comp;
567 explicit find_participant(RTC::RTObject_ptr comp)
568 : m_comp(RTC::RTObject::_duplicate(comp)) {}
569 #ifdef ORB_IS_ORBEXPRESS 570 bool operator()(RTC::RTObject_var comp)
572 return m_comp->_is_equivalent(comp.in());
575 bool operator()(RTC::RTObject_ptr comp)
577 return m_comp->_is_equivalent(comp);
584 #endif // RTC_EXECUTIONCONTEXTPROFILE_H std::chrono::nanoseconds getPeriod() const
void unlock() const
ExecutionContextProfileをアンロックする
RT component logger class
Definition: ExecutionContextProfile.h:28
RTC::RTObject_ptr getOwner() const
Ownerコンポーネントの参照を取得する
double getRate() const
ExecutionContext の実行周期(Hz)を取得する
RTC::ReturnCode_t removeComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントを参加者リストから削除する
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:37
ExecutionContextProfile(RTC::ExecutionKind kind=RTC::PERIODIC)
デフォルトコンストラクタ
const char * getKindString() const
Definition: ExecutionContextProfile.h:217
Logger クラス
Definition: SystemLogger.h:99
RTC::ReturnCode_t setOwner(RTC::LightweightRTObject_ptr comp)
Ownerコンポーネントをセットする。
virtual ~ExecutionContextProfile()
デストラクタ
RTC::ReturnCode_t setKind(RTC::ExecutionKind kind)
ExecutionKind を設定する
ExecutionContextProfile クラス
Definition: ExecutionContextProfile.h:50
void setProperties(coil::Properties &props)
Propertiesをセットする
void setObjRef(RTC::ExecutionContextService_ptr ec_ptr)
CORBA オブジェクト参照のセット
RTC::ReturnCode_t setPeriod(std::chrono::nanoseconds period)
const RTC::RTCList & getComponentList() const
RTコンポーネントの参加者リストを取得する
RTC::ExecutionContextService_ptr getObjRef() const
CORBA オブジェクト参照の取得
void lock() const
ExecutionContextProfileをロックする
RTC::ExecutionContextProfile * getProfile()
Profileを取得する
coil::Properties Properties
Definition: RTC.h:72
RTC::ReturnCode_t addComponent(RTC::LightweightRTObject_ptr comp)
RTコンポーネントを追加する
RTC::ExecutionKind getKind() const
ExecutionKind を取得する
RTC::ReturnCode_t setRate(double rate)
ExecutionContext の実行周期(Hz)を設定する
coil::Properties getProperties() const
Propertiesを取得する