[openrtm-commit:02072] r726 - trunk/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2016年 10月 20日 (木) 19:05:52 JST
Author: miyamoto
Date: 2016-10-20 19:05:51 +0900 (Thu, 20 Oct 2016)
New Revision: 726
Modified:
trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
Log:
[compat,bugfix,->RELENG_1_2] fixed SharedMemory.py. refs #3410
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py 2016-10-20 05:42:02 UTC (rev 725)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/SharedMemory.py 2016-10-20 10:05:51 UTC (rev 726)
@@ -69,7 +69,7 @@
self._smInterface = OpenRTM.PortSharedMemory._nil
self._shm_address = ""
self._memory_size = SharedMemory.default_memory_size
- self._endian = None
+ self._endian = True
if platform.system() == "Windows":
pass
else:
@@ -300,7 +300,7 @@
def write(self, data):
self._rtcout.RTC_TRACE("write()")
- if self._shmem and self._endian:
+ if self._shmem:
data_size = len(data)
@@ -343,7 +343,7 @@
# void read(::OpenRTM::CdrData_out data);
def read(self):
self._rtcout.RTC_TRACE("read()")
- if self._shmem and self._endian:
+ if self._shmem:
self._shmem.seek(os.SEEK_SET)
More information about the openrtm-commit
mailing list