Esempio n. 1
0
def FactoryInit():
    # Buffers
    OpenRTM_aist.CdrRingBufferInit()

    # Threads
    OpenRTM_aist.DefaultPeriodicTaskInit()

    # Publishers
    OpenRTM_aist.PublisherFlushInit()
    OpenRTM_aist.PublisherNewInit()
    OpenRTM_aist.PublisherPeriodicInit()

    # Providers/Consumer
    OpenRTM_aist.InPortCorbaCdrProviderInit()
    OpenRTM_aist.InPortCorbaCdrConsumerInit()
    OpenRTM_aist.OutPortCorbaCdrConsumerInit()
    OpenRTM_aist.OutPortCorbaCdrProviderInit()
    OpenRTM_aist.InPortDirectProviderInit()
    OpenRTM_aist.InPortDirectConsumerInit()
    OpenRTM_aist.OutPortDirectProviderInit()
    OpenRTM_aist.OutPortDirectConsumerInit()
    OpenRTM_aist.InPortSHMProviderInit()
    OpenRTM_aist.InPortSHMConsumerInit()
    OpenRTM_aist.OutPortSHMProviderInit()
    OpenRTM_aist.OutPortSHMConsumerInit()
    OpenRTM_aist.ProcessUniquePolicyInit()
    OpenRTM_aist.NodeNumberingPolicyInit()
    OpenRTM_aist.NamingServiceNumberingPolicyInit()
    OpenRTM_aist.LogstreamFileInit()
    OpenRTM_aist.OutPortDSProviderInit()
    OpenRTM_aist.OutPortDSConsumerInit()
    OpenRTM_aist.InPortDSProviderInit()
    OpenRTM_aist.InPortDSConsumerInit()
    ComponentObserverConsumer.ComponentObserverConsumerInit()
Esempio n. 2
0
 def setUp(self):
     InPortCorbaCdrProviderInit()
     OpenRTM_aist.CdrRingBufferInit()
     self._prov = OpenRTM_aist.InPortProviderFactory.instance(
     ).createObject("corba_cdr")
     self._inp = OpenRTM_aist.InPort("in", RTC.TimedLong(RTC.Time(0, 0), 0))
     self._orb = OpenRTM_aist.Manager.instance().getORB()
     self._buffer = BufferMock()
     return
Esempio n. 3
0
    def setUp(self):
        OpenRTM_aist.InPortSHMProviderInit()
        OpenRTM_aist.CdrRingBufferInit()
        self._prov = OpenRTM_aist.InPortProviderFactory.instance(
        ).createObject("shared_memory")
        self._inp = OpenRTM_aist.InPort("in", RTC.TimedLong(RTC.Time(0, 0), 0))
        self._orb = OpenRTM_aist.Manager.instance().getORB()
        self._buffer = BufferMock()
        #self._shm = OpenRTM_aist.SharedMemory()

        #self._shm.setInterface(self._prov._this())
        #self._shm.create_memory(1000,"test")
        self._prov.create_memory(1000, "test")
        return
def FactoryInit():
    # Buffers
    OpenRTM_aist.CdrRingBufferInit()

    # Threads
    OpenRTM_aist.DefaultPeriodicTaskInit()

    # Publishers
    OpenRTM_aist.PublisherFlushInit()
    OpenRTM_aist.PublisherNewInit()
    OpenRTM_aist.PublisherPeriodicInit()

    # Providers/Consumer
    OpenRTM_aist.InPortCorbaCdrProviderInit()
    OpenRTM_aist.InPortCorbaCdrConsumerInit()
    OpenRTM_aist.OutPortCorbaCdrConsumerInit()
    OpenRTM_aist.OutPortCorbaCdrProviderInit()