Go to the documentation of this file. 18 from omniORB
import any
101 def __init__(self, name, value, buffer=None, read_block=
False, write_block=
False,
102 read_timeout=0, write_timeout = 0):
103 OpenRTM_aist.InPortBase.__init__(self, name, OpenRTM_aist.toTypename(value))
110 def __del__(self, InPortBase=OpenRTM_aist.InPortBase):
111 InPortBase.__del__(self)
151 self._rtcout.RTC_TRACE(
"isNew()")
154 self._rtcout.RTC_DEBUG(
"no connectors")
159 self._rtcout.RTC_DEBUG(
"isNew() = True, readable data: %d",r)
162 self._rtcout.RTC_DEBUG(
"isNew() = False, no readable data")
191 self._rtcout.RTC_TRACE(
"isEmpty()")
194 self._rtcout.RTC_DEBUG(
"no connectors")
199 self._rtcout.RTC_DEBUG(
"isEmpty() = true, buffer is empty")
202 self._rtcout.RTC_DEBUG(
"isEmpty() = false, data exists in the buffer")
279 self._rtcout.RTC_TRACE(
"DataType read()")
283 self._rtcout.RTC_TRACE(
"OnRead called")
286 self._rtcout.RTC_DEBUG(
"no connectors")
289 _val = copy.deepcopy(self.
_value)
294 if ret == OpenRTM_aist.DataPortStatus.PORT_OK:
295 self._rtcout.RTC_DEBUG(
"data read succeeded")
300 self._rtcout.RTC_DEBUG(
"OnReadConvert called")
304 elif ret == OpenRTM_aist.DataPortStatus.BUFFER_EMPTY:
305 self._rtcout.RTC_WARN(
"buffer empty")
308 elif ret == OpenRTM_aist.DataPortStatus.BUFFER_TIMEOUT:
309 self._rtcout.RTC_WARN(
"buffer read timeout")
312 self._rtcout.RTC_ERROR(
"unknown retern value from buffer.read()")
372 def update(self)
Read into bound T-type data from current InPort.
def __del__(self, InPortBase=OpenRTM_aist.InPortBase)
def isNew(self)
bool isNew()
def isEmpty(self)
Check whether the data is newest.
def read(self)
Readout the value from DataPort.
def setOnRead(self, on_read)
def name(self)
const char* name()
def __init__(self, name, value, buffer=None, read_block=False, write_block=False, read_timeout=0, write_timeout=0)
A constructor.
def setOnReadConvert(self, on_rconvert)