[openrtm-commit:02770] r865 - branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 8月 29日 (火) 12:11:31 JST


Author: miyamoto
Date: 2017-08-29 12:11:31 +0900 (Tue, 29 Aug 2017)
New Revision: 865

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-08-02 08:51:20 UTC (rev 864)
+++ branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/Macho.py	2017-08-29 03:11:31 UTC (rev 865)
@@ -16,6 +16,7 @@
 
 
 import types
+import OpenRTM_aist
 
 class _EmptyBox:
   def __init__(self):
@@ -1181,4 +1182,26 @@
 
 
 def State(S):
-  return S
\ No newline at end of file
+  return S
+
+
+
+
+
+class logger(object):
+  rtcout = None
+  def __init__(self):
+    pass
+  
+  def debug(mes):
+    logger.setLoggerFile()
+    logger.rtcout.RTC_DEBUG(mes)
+    
+  debug = staticmethod(debug)
+  
+  def setLoggerFile():
+    if logger.rtcout is None:
+      logger.rtcout = OpenRTM_aist.Manager.instance().getLogbuf('Macho')
+  setLoggerFile = staticmethod(setLoggerFile)
+
+



More information about the openrtm-commit mailing list