21 from omniORB
import any
125 def __init__(self, info, provider, listeners, buffer = 0):
126 OpenRTM_aist.OutPortConnector.__init__(self, info)
135 self.
_rtcout.RTC_ERROR(
"Exeption: in OutPortPullConnector.__init__().")
138 self.
_buffer.init(info.properties.getNode(
"buffer"))
186 cdr_data = cdrMarshal(any.to_any(data).typecode(), data, self.
_endian)
188 self.
_rtcout.RTC_ERROR(
"write(): endian %s is not support.",self.
_endian)
212 self.
_rtcout.RTC_TRACE(
"disconnect()")
216 OpenRTM_aist.OutPortProviderFactory.instance().deleteObject(self.
_provider)
221 OpenRTM_aist.CdrBufferFactory.instance().deleteObject(self.
_buffer)
292 buf_type = info.properties.getProperty(
"buffer_type",
"ring_buffer")
293 return OpenRTM_aist.CdrBufferFactory.instance().createObject(buf_type)
305 self.
_listeners.connector_[OpenRTM_aist.ConnectorListenerType.ON_CONNECT].notify(self.
_profile)
318 self.
_listeners.connector_[OpenRTM_aist.ConnectorListenerType.ON_DISCONNECT].notify(self.
_profile)
def activate(self)
Connector activation.
def onConnect(self)
Invoke callback when connection is established void onConnect()
def disconnect(self)
disconnect
I£îPortConnector base class.
def onDisconnect(self)
Invoke callback when connection is destroied void onDisconnect()
def getBuffer(self)
Getting Buffer.
def deactivate(self)
Connector deactivation.
def write(self, data)
Writing data.
int PORT_OK
DataPortStatus return codes.
def createBuffer(self, info)
create bufferCdrBufferBase* createBuffer(ConnectorInfo& info);
OutPortPullConnector class.
def __init__(self, info, provider, listeners, buffer=0)
Constructor.
def __del__(self)
Destructor.