[openrtm-commit:02898] r892 - trunk/OpenRTM-aist-Python/OpenRTM_aist

openrtm @ openrtm.org openrtm @ openrtm.org
2017年 11月 2日 (木) 16:53:14 JST


Author: miyamoto
Date: 2017-11-02 16:53:14 +0900 (Thu, 02 Nov 2017)
New Revision: 892

Modified:
   trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortSHMProvider.py
   trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
   trunk/OpenRTM-aist-Python/OpenRTM_aist/uuid.py
Log:
[compat,->RELENG_1_2] bug fix.

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortSHMProvider.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortSHMProvider.py	2017-10-30 09:07:57 UTC (rev 891)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortSHMProvider.py	2017-11-02 07:53:14 UTC (rev 892)
@@ -151,7 +151,7 @@
   #
   # @endif
   #
-  # ::OpenRTM::PortStatus put(const ::OpenRTM::CdrData& data)
+  # ::OpenRTM::PortStatus put()
   #  throw (CORBA::SystemException);
   def put(self):
     

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py	2017-10-30 09:07:57 UTC (rev 891)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py	2017-11-02 07:53:14 UTC (rev 892)
@@ -303,7 +303,7 @@
   #
   # @endif
   #
-  # void write(cdrMemoryStream& data);
+  # void write(const cdrMemoryStream& data);
   def write(self, data):
     self._rtcout.RTC_TRACE("write()")
     
@@ -347,7 +347,7 @@
   #
   # @endif
   #
-  # void read(::OpenRTM::CdrData_out data);
+  # cdrMemoryStream read(data);
   def read(self):
     self._rtcout.RTC_TRACE("read()")
     if self._shmem:
@@ -382,7 +382,7 @@
   #
   # @endif
   #
-  # void close(int memory_size, string shm_address);
+  # void setInterface(::OpenRTM::PortSharedMemory_var sm);
   def setInterface(self, sm):
     self._smInterface = sm
 
@@ -404,7 +404,7 @@
   #
   # @endif
   #
-  # PortStatus setEndian();
+  # void setEndian(bool endian);
   def setEndian(self, endian):
     self._endian = endian
     if not CORBA.is_nil(self._smInterface):

Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/uuid.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/uuid.py	2017-10-30 09:07:57 UTC (rev 891)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/uuid.py	2017-11-02 07:53:14 UTC (rev 892)
@@ -79,7 +79,10 @@
             if len(bytes) != 16:
                 raise ValueError('bytes is not a 16-char string')
             def ord_func(v):
-                return ord(chr(v))
+                if sys.version_info[0] == 3:
+                    return ord(chr(v))
+                else:
+                    return ord(v)
             int_value = long(('%02x'*16) % tuple(map(ord_func, bytes)), 16)
         if fields:
             if len(fields) != 6:



More information about the openrtm-commit mailing list