[openrtm-commit:02669] r857 - branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 7月 10日 (月) 18:57:42 JST


Author: miyamoto
Date: 2017-07-10 18:57:42 +0900 (Mon, 10 Jul 2017)
New Revision: 857

Modified:
   branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/Macho.py
Log:
[incompat,2.0,FSM4RTC] fixed Machine Objects class library.

Modified: branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/Macho.py
===================================================================
--- branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/Macho.py	2017-07-10 09:32:02 UTC (rev 856)
+++ branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/Macho.py	2017-07-10 09:57:42 UTC (rev 857)
@@ -192,6 +192,13 @@
     if instance:
       instance.clearHistoryDeep(Machine.theStateCount,instance)
   clearHistoryDeep = staticmethod(clearHistoryDeep)
+  def clear_history(self, machine):
+    self._myStateInstance.setHistory(0)
+  def clear_history_deep(self, machine):
+    self._myStateInstance.setHistory(0)
+    self._myStateInstance.setHistorySuper(0)
+    
+    
   def history(machine, StateID):
     instance = machine.getInstance(StateID)
     history = 0



More information about the openrtm-commit mailing list