[openrtm-commit:03261] r962 - in trunk/OpenRTM-aist-Python/OpenRTM_aist: . examples/SimpleIO

openrtm @ openrtm.org openrtm @ openrtm.org
2018年 3月 22日 (木) 09:05:59 JST


Author: miyamoto
Date: 2018-03-22 09:05:59 +0900 (Thu, 22 Mar 2018)
New Revision: 962

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/PortAdmin.py
   trunk/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py
   trunk/OpenRTM-aist-Python/OpenRTM_aist/examples/SimpleIO/ConsoleOut.py
Log:
[compat,bugfix,->RELENG_1_2] fixed bug.

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/PortAdmin.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/PortAdmin.py	2018-03-19 02:48:39 UTC (rev 961)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/PortAdmin.py	2018-03-22 00:05:59 UTC (rev 962)
@@ -438,7 +438,6 @@
   # @endif
   def finalizePorts(self):
     self.deactivatePorts()
-    ports = []
     ports = self._portServants.getObjects()
     len_ = len(ports)
     for i in range(len_):

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py	2018-03-19 02:48:39 UTC (rev 961)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/PortBase.py	2018-03-22 00:05:59 UTC (rev 962)
@@ -210,12 +210,12 @@
   #
   def exit(self):
     self._rtcout.RTC_TRACE("PortBase.__del__()")
-    try:
-      poa = OpenRTM_aist.Manager.instance().getPOA()
-      oid = poa.servant_to_id(self)
-      poa.deactivate_object(oid)
-    except:
-      self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
+    #try:
+    #  poa = OpenRTM_aist.Manager.instance().getPOA()
+    #  oid = poa.servant_to_id(self)
+    #  poa.deactivate_object(oid)
+    #except:
+    #  self._rtcout.RTC_ERROR(OpenRTM_aist.Logger.print_exception())
 
   ##
   # @if jp

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/examples/SimpleIO/ConsoleOut.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/examples/SimpleIO/ConsoleOut.py	2018-03-19 02:48:39 UTC (rev 961)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/examples/SimpleIO/ConsoleOut.py	2018-03-22 00:05:59 UTC (rev 962)
@@ -107,7 +107,7 @@
 
   def onExecute(self, ec_id):
 
-    if self._inport.isNew():
+    if self._inport.isNew() or True:
       data = self._inport.read()
       print("Received: ", data)
       print("Received: ", data.data)



openrtm-commit メーリングリストの案内