19 from omniORB
import CORBA
20 from omniORB
import any
24 sys.path.insert(1,
"../")
25 sys.path.insert(1,
"../RTM_IDL")
29 from CorbaConsumer
import *
31 import OpenRTM, OpenRTM__POA
35 self.
orb = CORBA.ORB_init()
36 self.
poa = self.orb.resolve_initial_references(
"RootPOA")
37 poaManager = self.poa._get_the_POAManager()
43 return OpenRTM.PORT_OK
53 obj = self._cc._ptr()._narrow(OpenRTM.InPortCdr)
54 cdr = cdrMarshal(any.to_any(
"hoge").typecode(),
"hoge", 1)
55 self.assertEqual(OpenRTM.PORT_OK,obj.put(cdr))
56 self._cc.releaseObject()
57 self.assertEqual(self._cc._ptr(),
None)
62 if __name__ ==
'__main__':