19 sys.path.insert(1,
"../")
23 from PeriodicExecutionContext
import *
28 from omniORB
import CORBA, PortableServer
34 self.
_orb = CORBA.ORB_init()
35 self.
_poa = self.
_orb.resolve_initial_references(
"RootPOA")
36 OpenRTM_aist.RTObject_impl.__init__(self, orb=self.
_orb, poa=self.
_poa)
76 print "on_initialize()" 100 print "on_aborting()" 119 print "on_state_update()" 123 print "on_rate_changed()" 145 return SDOPackage.SDOService._nil()
148 return SDOPackage.Configuration._nil()
151 return SDOPackage.Monitoring._nil()
166 self.
_dfp._poa._get_the_POAManager().activate()
169 self.
_pec.add_component(self.
_dfp.getRef())
177 OpenRTM_aist.Manager.instance().shutdownManager()
181 return "INACTIVE_STATE" 183 return "ACTIVE_STATE" 187 return "UNKNOWN_STATE" 189 return "INVALID_STATE" 193 print "rate: ", self.
_pec.get_rate()
194 print "kind: ", self.
_pec.get_kind()
195 self.
_pec.activate_component(self.
_dfp.getRef())
206 self.
_pec.set_rate(1000)
207 print "get rate: ", self.
_pec.get_rate()
218 self._pec.reset_component(self._dfp.getRef())
219 print "reset state: ", self._pec.get_component_state(self._dfp.getRef())
220 self._pec.activate_component(self._dfp.getRef())
221 print "activate state: ", self._pec.get_component_state(self._dfp.getRef())
225 self.
_pec.remove_component(self.
_dfp.getRef())
226 self.
_pec.activate_component(self.
_dfp.getRef())
227 print "activate state: ", self.
_pec.get_component_state(self.
_dfp.getRef())
231 print "get_profile.kind: ", self.
_pec.get_profile().kind
236 if __name__ ==
'__main__':
def on_aborting(self, id)
def get_status(self, name)
def on_deactivated(self, id)
def get_sdo_service(self)
def test_get_profile(self)
def get_service_profile(self, id)
def getState(self, state)
def get_service_profiles(self)
def test_activate_component(self)
def get_device_profile(self)
def get_organizations(self)
def on_shutdown(self, id)
def test_reset_component(self)
def get_component_profile(self)
def on_rate_changed(self, id)
def on_state_update(self, id)
def on_activated(self, id)
def set_execution_context_service(self, ec)
def get_status_list(self)
def get_execution_context_services(self)
def get_configuration(self)
def get_owned_organizations(self)