Public Member Functions | Static Public Attributes | Private Attributes | List of all members
OpenRTM_aist.StateMachine.StateMachine Class Reference

Public Member Functions

def __init__ (self, num_of_state)
 Constructor. More...
 
def getState (self)
 Get current state. More...
 
def getStates (self)
 Get state machine's status. More...
 
def goTo (self, state)
 Change status. More...
 
def isIn (self, state)
 Evaluate current status. More...
 
def need_trans (self)
 
def setDoAction (self, state, call_back)
 Set Do action function. More...
 
def setEntryAction (self, state, call_back)
 Set Entry action function. More...
 
def setExitAction (self, state, call_back)
 Set Exit action function. More...
 
def setListener (self, listener)
 Set Listener Object. More...
 
def setNOP (self, call_back)
 Set NOP function. More...
 
def setNullFunc (self, s, nullfunc)
 Worker function. More...
 
def setPostDoAction (self, state, call_back)
 Set PostDo action function. More...
 
def setPreDoAction (self, state, call_back)
 Set PreDo action function. More...
 
def setStartState (self, states)
 Set Exit action function. More...
 
def setTransitionAction (self, call_back)
 Set state transition action function. More...
 
def sync (self, states)
 
def update_curr (self, curr)
 
def worker (self)
 Worker function. More...
 

Static Public Attributes

tuple state_array
 

Private Attributes

 _do
 
 _entry
 
 _exit
 
 _listener
 
 _mutex
 
 _num
 
 _postdo
 
 _predo
 
 _states
 
 _transit
 

Detailed Description

 

Definition at line 134 of file StateMachine.py.

Constructor & Destructor Documentation

◆ __init__()

def OpenRTM_aist.StateMachine.StateMachine.__init__ (   self,
  num_of_state 
)

Constructor.

Definition at line 155 of file StateMachine.py.

Member Function Documentation

◆ getState()

def OpenRTM_aist.StateMachine.StateMachine.getState (   self)

Get current state.

Definition at line 395 of file StateMachine.py.

◆ getStates()

def OpenRTM_aist.StateMachine.StateMachine.getStates (   self)

Get state machine's status.

Definition at line 377 of file StateMachine.py.

◆ goTo()

def OpenRTM_aist.StateMachine.StateMachine.goTo (   self,
  state 
)

Change status.

Definition at line 438 of file StateMachine.py.

◆ isIn()

def OpenRTM_aist.StateMachine.StateMachine.isIn (   self,
  state 
)

Evaluate current status.

Definition at line 414 of file StateMachine.py.

◆ need_trans()

def OpenRTM_aist.StateMachine.StateMachine.need_trans (   self)

Definition at line 538 of file StateMachine.py.

◆ setDoAction()

def OpenRTM_aist.StateMachine.StateMachine.setDoAction (   self,
  state,
  call_back 
)

Set Do action function.

Definition at line 270 of file StateMachine.py.

◆ setEntryAction()

def OpenRTM_aist.StateMachine.StateMachine.setEntryAction (   self,
  state,
  call_back 
)

Set Entry action function.

Definition at line 224 of file StateMachine.py.

◆ setExitAction()

def OpenRTM_aist.StateMachine.StateMachine.setExitAction (   self,
  state,
  call_back 
)

Set Exit action function.

Definition at line 316 of file StateMachine.py.

◆ setListener()

def OpenRTM_aist.StateMachine.StateMachine.setListener (   self,
  listener 
)

Set Listener Object.

Definition at line 205 of file StateMachine.py.

◆ setNOP()

def OpenRTM_aist.StateMachine.StateMachine.setNOP (   self,
  call_back 
)

Set NOP function.

Definition at line 184 of file StateMachine.py.

◆ setNullFunc()

def OpenRTM_aist.StateMachine.StateMachine.setNullFunc (   self,
  s,
  nullfunc 
)

Worker function.

Definition at line 503 of file StateMachine.py.

◆ setPostDoAction()

def OpenRTM_aist.StateMachine.StateMachine.setPostDoAction (   self,
  state,
  call_back 
)

Set PostDo action function.

Definition at line 293 of file StateMachine.py.

◆ setPreDoAction()

def OpenRTM_aist.StateMachine.StateMachine.setPreDoAction (   self,
  state,
  call_back 
)

Set PreDo action function.

Definition at line 247 of file StateMachine.py.

◆ setStartState()

def OpenRTM_aist.StateMachine.StateMachine.setStartState (   self,
  states 
)

Set Exit action function.

Definition at line 356 of file StateMachine.py.

◆ setTransitionAction()

def OpenRTM_aist.StateMachine.StateMachine.setTransitionAction (   self,
  call_back 
)

Set state transition action function.

Definition at line 339 of file StateMachine.py.

◆ sync()

def OpenRTM_aist.StateMachine.StateMachine.sync (   self,
  states 
)

Definition at line 520 of file StateMachine.py.

◆ update_curr()

def OpenRTM_aist.StateMachine.StateMachine.update_curr (   self,
  curr 
)

Definition at line 552 of file StateMachine.py.

◆ worker()

def OpenRTM_aist.StateMachine.StateMachine.worker (   self)

Worker function.

Definition at line 455 of file StateMachine.py.

Member Data Documentation

◆ _do

OpenRTM_aist.StateMachine.StateMachine._do
private

Definition at line 159 of file StateMachine.py.

◆ _entry

OpenRTM_aist.StateMachine.StateMachine._entry
private

Definition at line 157 of file StateMachine.py.

◆ _exit

OpenRTM_aist.StateMachine.StateMachine._exit
private

Definition at line 161 of file StateMachine.py.

◆ _listener

OpenRTM_aist.StateMachine.StateMachine._listener
private

Definition at line 206 of file StateMachine.py.

◆ _mutex

OpenRTM_aist.StateMachine.StateMachine._mutex
private

Definition at line 169 of file StateMachine.py.

◆ _num

OpenRTM_aist.StateMachine.StateMachine._num
private

Definition at line 156 of file StateMachine.py.

◆ _postdo

OpenRTM_aist.StateMachine.StateMachine._postdo
private

Definition at line 160 of file StateMachine.py.

◆ _predo

OpenRTM_aist.StateMachine.StateMachine._predo
private

Definition at line 158 of file StateMachine.py.

◆ _states

OpenRTM_aist.StateMachine.StateMachine._states
private

Definition at line 357 of file StateMachine.py.

◆ _transit

OpenRTM_aist.StateMachine.StateMachine._transit
private

Definition at line 168 of file StateMachine.py.

◆ state_array

tuple OpenRTM_aist.StateMachine.StateMachine.state_array
static
Initial value:
= (RTC.CREATED_STATE,
RTC.INACTIVE_STATE,
RTC.ACTIVE_STATE,
RTC.ERROR_STATE)

Definition at line 138 of file StateMachine.py.


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


openrtm_aist_python
Author(s): Shinji Kurihara
autogenerated on Mon Feb 28 2022 23:01:09