19 sys.path.insert(1,
"../")
26 from ExtTrigExecutionContext
import *
28 from omniORB
import CORBA, PortableServer
32 self.
_orb = CORBA.ORB_init()
33 self.
_poa = self.
_orb.resolve_initial_references(
"RootPOA")
34 OpenRTM_aist.RTObject_impl.__init__(self, orb=self.
_orb, poa=self.
_poa)
45 self.
_dfp._poa._get_the_POAManager().activate()
50 OpenRTM_aist.Manager.instance().shutdownManager()
57 self.assertEqual(self.etec.start(),RTC.RTC_OK)
58 self.assertEqual(self.etec.add_component(self._dfp._this()),RTC.RTC_OK)
59 self.assertEqual(self.etec.activate_component(self._dfp._this()),RTC.RTC_OK)
65 self.assertEqual(self.etec.deactivate_component(self._dfp._this()),RTC.RTC_OK)
67 self.assertEqual(self.etec.remove_component(self._dfp._this()),RTC.RTC_OK)
68 th = threading.Thread(target=self.stop)
73 self._dfp._poa.deactivate_object(self._dfp._poa.servant_to_id(self.etec))
74 self._dfp._poa.deactivate_object(self._dfp._poa.servant_to_id(self._dfp))
80 if __name__ ==
'__main__':
def on_execute(self, ec_id)