[openrtm-commit:02657] r853 - branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 6月 27日 (火) 22:55:54 JST


Author: miyamoto
Date: 2017-06-27 22:55:54 +0900 (Tue, 27 Jun 2017)
New Revision: 853

Modified:
   branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Display.py
   branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Inputbutton.py
   branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/MicrowaveFsm.py
Log:
[compat,2.0,FSM4RTC] fixed sample

Modified: branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Display.py
===================================================================
--- branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Display.py	2017-06-27 13:50:15 UTC (rev 852)
+++ branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Display.py	2017-06-27 13:55:54 UTC (rev 853)
@@ -127,9 +127,9 @@
   def onExecute(self, ec_id):
     if self._inIn.isNew():
       data = self._inIn.read()
-      print("Received: ", data.data)
-      print("TimeStamp: ", data.tm.sec,"[s]")
-      print("TimeStamp: ", data.tm.nsec,"[ns]")
+      print "Received: ", data.data
+      print "TimeStamp: ", data.tm.sec,"[s]"
+      print "TimeStamp: ", data.tm.nsec,"[ns]"
 
     
     return RTC.RTC_OK

Modified: branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Inputbutton.py
===================================================================
--- branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Inputbutton.py	2017-06-27 13:50:15 UTC (rev 852)
+++ branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/Inputbutton.py	2017-06-27 13:55:54 UTC (rev 853)
@@ -84,7 +84,7 @@
     OpenRTM_aist.StringUtil.eraseBlank(cmds)
     cmds[0] = cmds[0].replace("\n","")
     cmds[0] = cmds[0].replace("\r","")
-    print("[command]: ",cmds[0])
+    print "[command]: ",cmds[0]
     #print("  [args]: ",end="")
     print "  [args]: ",
     for n in range(len(cmds)):

Modified: branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/MicrowaveFsm.py
===================================================================
--- branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/MicrowaveFsm.py	2017-06-27 13:50:15 UTC (rev 852)
+++ branches/FSM4RTC/OpenRTM-aist-Python/OpenRTM_aist/examples/StaticFsm/MicrowaveFsm.py	2017-06-27 13:55:54 UTC (rev 853)
@@ -48,7 +48,7 @@
     def __init__(self):
       self.myCookingTime = 0
     def printTimer(self):
-      print(" Timer set to ", self.myCookingTime, " minutes")
+      print " Timer set to ", self.myCookingTime, " minutes"
     def incrementTimer(self):
       self.myCookingTime+=1
     def decrementTimer(self):



More information about the openrtm-commit mailing list