18 from omniORB
import any
101 def __init__(self, name, value, buffer=None,
102 read_block=False, write_block=False,
103 read_timeout=0, write_timeout = 0):
104 OpenRTM_aist.InPortBase.__init__(self, name, OpenRTM_aist.toTypename(value))
111 def __del__(self, InPortBase=OpenRTM_aist.InPortBase):
112 InPortBase.__del__(self)
152 self.
_rtcout.RTC_TRACE(
"isNew()")
155 self.
_rtcout.RTC_DEBUG(
"no connectors")
160 self.
_rtcout.RTC_DEBUG(
"isNew() = True, readable data: %d",r)
163 self.
_rtcout.RTC_DEBUG(
"isNew() = False, no readable data")
192 self.
_rtcout.RTC_TRACE(
"isEmpty()")
195 self.
_rtcout.RTC_DEBUG(
"no connectors")
200 self.
_rtcout.RTC_DEBUG(
"isEmpty() = true, buffer is empty")
203 self.
_rtcout.RTC_DEBUG(
"isEmpty() = false, data exists in the buffer")
280 self.
_rtcout.RTC_TRACE(
"DataType read()")
284 self.
_rtcout.RTC_TRACE(
"OnRead called")
287 self.
_rtcout.RTC_DEBUG(
"no connectors")
290 _val = copy.deepcopy(self.
_value)
295 if ret == OpenRTM_aist.DataPortStatus.PORT_OK:
296 self.
_rtcout.RTC_DEBUG(
"data read succeeded")
301 self.
_rtcout.RTC_DEBUG(
"OnReadConvert called")
305 elif ret == OpenRTM_aist.DataPortStatus.BUFFER_EMPTY:
306 self.
_rtcout.RTC_WARN(
"buffer empty")
309 elif ret == OpenRTM_aist.DataPortStatus.BUFFER_TIMEOUT:
310 self.
_rtcout.RTC_WARN(
"buffer read timeout")
313 self.
_rtcout.RTC_ERROR(
"unknown retern value from buffer.read()")
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)