20 from omniORB
import any
127 def __init__(self, info, consumer, listeners, buffer = 0):
128 OpenRTM_aist.InPortConnector.__init__(self, info, buffer)
137 self._buffer.init(info.properties.getNode(
"buffer"))
138 self._consumer.setBuffer(self.
_buffer)
139 self._consumer.setListener(info, self.
_listeners)
196 self._rtcout.RTC_TRACE(
"InPortPullConnector.read()")
201 ret = self._consumer.get(cdr_data)
206 data[0] = cdrUnmarshal(any.to_any(data[0]).typecode(),cdr_data[0],self.
_endian)
209 self._rtcout.RTC_ERROR(
"unknown endian from connector")
210 return OpenRTM_aist.BufferStatus.PRECONDITION_NOT_MET
230 self._rtcout.RTC_TRACE(
"disconnect()")
234 OpenRTM_aist.OutPortConsumerFactory.instance().deleteObject(self.
_consumer)
296 buf_type = profile.properties.getProperty(
"buffer_type",
"ring_buffer")
297 return OpenRTM_aist.CdrBufferFactory.instance().createObject(buf_type)
308 self._listeners.connector_[OpenRTM_aist.ConnectorListenerType.ON_CONNECT].notify(self.
_profile)
320 self._listeners.connector_[OpenRTM_aist.ConnectorListenerType.ON_DISCONNECT].notify(self.
_profile)
def __del__(self)
Destructor.
def __init__(self, info, consumer, listeners, buffer=0)
Constructor.
def read(self, data)
Destructor.
def onConnect(self)
Invoke callback when connection is established void onConnect()
def activate(self)
Connector activation.
def createBuffer(self, profile)
create buffer
int PORT_OK
DataPortStatus return codes.
def disconnect(self)
Disconnect connection.
I£îPortConnector base class.
def onDisconnect(self)
Invoke callback when connection is destroied void onDisconnect()
def deactivate(self)
Connector deactivation.
InPortPullConnector class.