[詳解]
19 #ifndef RTC_IMPL_RTOBJECTSTATEMACHINE_H
20 #define RTC_IMPL_RTOBJECTSTATEMACHINE_H
24 #include <coil/TimeMeasure.h>
25 #include <rtm/idl/RTCSkel.h>
31 #define NUM_OF_LIFECYCLESTATE 4
38 using Ecid = RTC::ExecutionContextHandle_t;
103 RTC::ExecutionContextHandle_t m_id;
113 RTC::ComponentAction_var m_caVar;
114 RTC::DataFlowComponentAction_var m_dfcVar;
115 RTC::FsmParticipantAction_var m_fsmVar;
116 RTC::MultiModeComponentAction_var m_modeVar;
120 coil::TimeMeasure m_svtMeasure;
121 coil::TimeMeasure m_refMeasure;
122 std::atomic<bool> m_activation;
123 std::atomic<bool> m_deactivation;
124 std::atomic<bool> m_reset;
128 #endif // RTC_RTOBJECTSTATEMACHINE_H
void setFsmParticipantAction(RTC::LightweightRTObject_ptr comp)
bool isNextState(ExecContextState state)
RTC::ExecutionContextHandle_t getExecutionContextHandle()
void onReset(const ExecContextStates &st)
void onActivated(const ExecContextStates &st)
Definition: ExecutionContextProfile.h:28
void setDataFlowComponentAction(RTC::LightweightRTObject_ptr comp)
RTコンポーネントクラス
Definition: RTObject.h:90
void onStateUpdate(const ExecContextStates &st)
ExecContextStates getStates()
void onError(const ExecContextStates &st)
void onAction(const ExecContextStates &st)
RTC::ExecutionContextHandle_t Ecid
Definition: RTObjectStateMachine.h:38
RTC::LightweightRTObject_var LightweightRTObject_var
Definition: ExecutionContextWorker.h:38
void setComponentAction(RTC::LightweightRTObject_ptr comp)
RTObjectStateMachine & operator=(RTObjectStateMachine const &)=delete
RTC::LifeCycleState ExecContextState
Definition: RTObjectStateMachine.h:39
Logger クラス
Definition: SystemLogger.h:99
virtual ~RTObjectStateMachine()
RTC::LightweightRTObject_ptr getRTObject()
RTObjectStateMachine(RTC::ExecutionContextHandle_t id, RTC::LightweightRTObject_ptr comp)
void onDeactivated(const ExecContextStates &st)
void setMultiModeComponentAction(RTC::LightweightRTObject_ptr comp)
void goTo(ExecContextState state)
bool isEquivalent(RTC::LightweightRTObject_ptr comp)
void onModeChanged(const ExecContextStates &st)
Definition: RTObjectStateMachine.h:42
RTC::ReturnCode_t onRateChanged()
void onExecute(const ExecContextStates &st)
ExecContextState getState()
bool isCurrentState(ExecContextState state)
void onAborting(const ExecContextStates &st)
State machine template class
RTC::LightweightRTObject_ptr LightweightRTObject_ptr
Definition: ExecutionContextWorker.h:37
RT component logger class
状態マシンクラス
Definition: StateMachine.h:266