55 self.
_rtcout = OpenRTM_aist.Manager.instance().getLogbuf(
"PublisherFlush")
76 self.
_rtcout.RTC_TRACE(
"~PublisherFlush()")
106 self.
_rtcout.RTC_TRACE(
"init()")
134 self.
_rtcout.RTC_TRACE(
"setConsumer()")
165 self.
_rtcout.RTC_TRACE(
"setBuffer()")
205 self.
_rtcout.RTC_TRACE(
"setListeners()")
208 self.
_rtcout.RTC_ERROR(
"setListeners(listeners == 0): invalid argument")
278 self.
_rtcout.RTC_PARANOID(
"write()")
283 self.
_rtcout.RTC_DEBUG(
"write(): connection lost.")
427 self.
_listeners.connectorData_[OpenRTM_aist.ConnectorDataListenerType.ON_SEND].notify(self.
_profile, data)
442 self.
_listeners.connectorData_[OpenRTM_aist.ConnectorDataListenerType.ON_RECEIVED].notify(self.
_profile, data)
457 self.
_listeners.connectorData_[OpenRTM_aist.ConnectorDataListenerType.ON_RECEIVER_FULL].notify(self.
_profile, data)
472 self.
_listeners.connectorData_[OpenRTM_aist.ConnectorDataListenerType.ON_RECEIVER_TIMEOUT].notify(self.
_profile, data)
487 self.
_listeners.connectorData_[OpenRTM_aist.ConnectorDataListenerType.ON_RECEIVER_ERROR].notify(self.
_profile, data)
492 OpenRTM_aist.PublisherFactory.instance().addFactory(
"flush",
def setConsumer(self, consumer)
Store InPort consumer.
def onReceived(self, data)
Notify an ON_RECEIVED event to listeners.
def init(self, prop)
initialization
def activate(self)
activation
def deactivate(self)
deactivation
def write(self, data, sec, usec)
Write data.
def onReceiverError(self, data)
Notify an ON_RECEIVER_ERROR event to listeners.
def onSend(self, data)
Notify an ON_SEND event to listners.
def isActive(self)
If publisher is active state.
def __del__(self)
Destructor.
int PORT_OK
DataPortStatus return codes.
def setListener(self, info, listeners)
Set the listener.
def setBuffer(self, buffer)
Setting buffer pointer.
def onReceiverFull(self, data)
Notify an ON_RECEIVER_FULL event to listeners.
def onReceiverTimeout(self, data)
Notify an ON_RECEIVER_TIMEOUT event to listeners.
def __init__(self)
Constructor.