OpenRTM-aist
2.1.0
Toggle main menu visibility
読み取り中…
検索中…
一致する文字列を見つけられません
OpenHRPExecutionContext.h
[詳解]
1
// -*- C++ -*-
18
19
#ifndef RTC_OPENHRPEXECUTIONCONTEXT_H
20
#define RTC_OPENHRPEXECUTIONCONTEXT_H
21
22
#include <mutex>
23
#include <
rtm/RTC.h
>
24
#include <
rtm/ExecutionContextBase.h
>
25
26
namespace
RTC
27
{
46
class
OpenHRPExecutionContext
47
:
public
virtual
POA_OpenRTM::ExtTrigExecutionContextService,
48
public
virtual
PortableServer::RefCountServantBase,
49
public
RTC::ExecutionContextBase
50
{
51
public
:
59
OpenHRPExecutionContext
();
60
68
~OpenHRPExecutionContext
()
override
;
69
70
71
//============================================================
72
// ExtTrigExecutionContextService
73
//============================================================
87
void
tick
()
override
;
88
89
//============================================================
90
// ExecutionContextService
91
//============================================================
116
CORBA::Boolean
is_running
()
override
;
117
145
RTC::ReturnCode_t
start
()
override
;
146
173
RTC::ReturnCode_t
stop
()
override
;
174
195
CORBA::Double
get_rate
()
override
;
196
226
RTC::ReturnCode_t
set_rate
(CORBA::Double rate)
override
;
227
261
RTC::ReturnCode_t
262
activate_component
(RTC::LightweightRTObject_ptr comp)
override
;
263
296
RTC::ReturnCode_t
297
deactivate_component
(RTC::LightweightRTObject_ptr comp)
override
;
298
330
RTC::ReturnCode_t
331
reset_component
(RTC::LightweightRTObject_ptr comp)
override
;
332
359
RTC::LifeCycleState
360
get_component_state
(RTC::LightweightRTObject_ptr comp)
override
;
361
381
RTC::ExecutionKind
get_kind
()
override
;
382
414
RTC::ReturnCode_t
add_component
(RTC::LightweightRTObject_ptr comp)
override
;
415
446
RTC::ReturnCode_t
447
remove_component
(RTC::LightweightRTObject_ptr comp)
override
;
448
468
RTC::ExecutionContextProfile*
get_profile
()
override
;
469
protected
:
470
// template virtual functions adding/removing component
474
RTC::ReturnCode_t
475
onAddedComponent
(RTC::LightweightRTObject_ptr rtobj)
override
;
479
RTC::ReturnCode_t
480
onRemovedComponent
(RTC::LightweightRTObject_ptr rtobj)
override
;
484
std::mutex
m_tickmutex
;
485
private
:
493
RTC::Logger
rtclog{
"exttrig_sync_ec"
};
494
};
// class OpenHRPExecutionContext
495
}
// namespace RTC
496
497
498
extern
"C"
499
{
507
void
OpenHRPExecutionContextInit
(
RTC::Manager
* manager);
508
}
509
510
#endif
// RTC_OPENHRPEXECUTIONCONTEXT_H
511
ExecutionContextBase.h
ExecutionContext base class
OpenHRPExecutionContextInit
void OpenHRPExecutionContextInit(RTC::Manager *manager)
ECFactoryへの登録のための初期化関数
RTC.h
RTComponent header
RTC::ExecutionContextBase
ExecutionContext用基底クラス
Definition
ExecutionContextBase.h:366
RTC::Logger
Logger クラス
Definition
SystemLogger.h:101
RTC::Manager
Manager クラス
Definition
Manager.h:91
RTC::OpenHRPExecutionContext::onRemovedComponent
RTC::ReturnCode_t onRemovedComponent(RTC::LightweightRTObject_ptr rtobj) override
onRemovedComponent() template function
RTC::OpenHRPExecutionContext::get_rate
CORBA::Double get_rate() override
ExecutionContext の実行周期(Hz)を取得する
RTC::OpenHRPExecutionContext::start
RTC::ReturnCode_t start() override
ExecutionContext の実行を開始
RTC::OpenHRPExecutionContext::reset_component
RTC::ReturnCode_t reset_component(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントをリセットする
RTC::OpenHRPExecutionContext::onAddedComponent
RTC::ReturnCode_t onAddedComponent(RTC::LightweightRTObject_ptr rtobj) override
onAddedComponent() template function
RTC::OpenHRPExecutionContext::stop
RTC::ReturnCode_t stop() override
ExecutionContext の実行を停止
RTC::OpenHRPExecutionContext::is_running
CORBA::Boolean is_running() override
ExecutionContext 実行状態確認関数
RTC::OpenHRPExecutionContext::set_rate
RTC::ReturnCode_t set_rate(CORBA::Double rate) override
ExecutionContext の実行周期(Hz)を設定する
RTC::OpenHRPExecutionContext::add_component
RTC::ReturnCode_t add_component(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントを追加する
RTC::OpenHRPExecutionContext::deactivate_component
RTC::ReturnCode_t deactivate_component(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントを非アクティブ化する
RTC::OpenHRPExecutionContext::activate_component
RTC::ReturnCode_t activate_component(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントをアクティブ化する
RTC::OpenHRPExecutionContext::~OpenHRPExecutionContext
~OpenHRPExecutionContext() override
デストラクタ
RTC::OpenHRPExecutionContext::m_tickmutex
std::mutex m_tickmutex
Mutex to guard tick() reenter.
Definition
OpenHRPExecutionContext.h:484
RTC::OpenHRPExecutionContext::tick
void tick() override
処理を1ステップ進める
RTC::OpenHRPExecutionContext::get_component_state
RTC::LifeCycleState get_component_state(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントの状態を取得する
RTC::OpenHRPExecutionContext::get_profile
RTC::ExecutionContextProfile * get_profile() override
ExecutionContextProfile を取得する
RTC::OpenHRPExecutionContext::OpenHRPExecutionContext
OpenHRPExecutionContext()
コンストラクタ
RTC::OpenHRPExecutionContext::get_kind
RTC::ExecutionKind get_kind() override
ExecutionKind を取得する
RTC::OpenHRPExecutionContext::remove_component
RTC::ReturnCode_t remove_component(RTC::LightweightRTObject_ptr comp) override
RTコンポーネントを参加者リストから削除する
RTC
RTコンポーネント
構築:
1.17.0