[openrtm-commit:03292] r972 - trunk/OpenRTM-aist-Python/OpenRTM_aist
openrtm @ openrtm.org
openrtm @ openrtm.org
2018年 3月 28日 (水) 10:35:07 JST
Author: miyamoto
Date: 2018-03-28 10:35:06 +0900 (Wed, 28 Mar 2018)
New Revision: 972
Modified:
trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortPushConnector.py
Log:
[merge] r865,875,900,906,908 have been merged from FSM4RTC.
Modified: trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortPushConnector.py
===================================================================
--- trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortPushConnector.py 2018-03-28 01:17:48 UTC (rev 971)
+++ trunk/OpenRTM-aist-Python/OpenRTM_aist/InPortPushConnector.py 2018-03-28 01:35:06 UTC (rev 972)
@@ -381,19 +381,7 @@
#
# ReturnCode write(const OpenRTM::CdrData& data);
def write(self, data):
- if not self._dataType:
- return OpenRTM_aist.BufferStatus.PRECONDITION_NOT_MET
-
- _data = None
- # CDR -> (conversion) -> data
- if self._endian is not None:
- _data = cdrUnmarshal(any.to_any(self._dataType).typecode(),data,self._endian)
-
- else:
- self._rtcout.RTC_ERROR("unknown endian from connector")
- return OpenRTM_aist.BufferStatus.PRECONDITION_NOT_MET
-
- return self._buffer.write(_data)
+ return self._buffer.write(data)
##
openrtm-commit メーリングリストの案内