Go to the documentation of this file.
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()")
80 print(
"on_finalize()")
96 print(
"deactivated()")
100 print(
"on_aborting()")
112 print(
"on_execute()")
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_startup(self, id)
[ComponentAction CORBA interface] StartUp RTC
def getState(self, state)
def get_owned_organizations(self)
[SDO interface] Getting Organizations
def get_sdo_service(self)
def on_execute(self, id)
[DataFlowComponentAction CORBA interface] Primary Periodic Operation of RTC
def initialize(self)
Initialize the RTC that realizes this interface.
def finalize(self)
Finalize the RTC for preparing it for destruction.
def on_finalize(self)
[ComponentAction CORBA interface] Finalize RTC
def test_get_profile(self)
def get_configuration(self)
[SDO interface] Getting Configuration object
def get_service_profile(self, id)
[SDO interface] Getting Organizations
def on_deactivated(self, id)
[ComponentAction CORBA interface] Deactivate RTC
def get_ports(self)
[RTObject CORBA interface] Get Ports
def on_shutdown(self, id)
[ComponentAction CORBA interface] ShutDown RTC
def on_error(self, id)
[ComponentAction CORBA interface] Error Processing of RTC
def get_organizations(self)
[SDO interface] Getting Organizations
def set_execution_context_service(self, ec)
def test_activate_component(self)
def test_reset_component(self)
def on_activated(self, id)
[ComponentAction CORBA interface] Activate RTC
def get_monitoring(self)
[SDO interface] Get Monitoring object
def get_status(self, name)
[SDO interface] Get SDO Status
def get_device_profile(self)
[SDO interface] Getting SDO DeviceProfile
def get_sdo_type(self)
[SDO interface] Getting SDO type
def on_rate_changed(self, id)
[DataFlowComponentAction CORBA interface] Notify rate chenged
def get_sdo_id(self)
[SDO interface] Getting SDO ID
def on_state_update(self, id)
[DataFlowComponentAction CORBA interface] Secondary Periodic Operation of RTC
def on_initialize(self)
[ComponentAction CORBA interface] Initialize RTC
def on_reset(self, id)
[ComponentAction CORBA interface] Resetting RTC
def exit(self)
Stop the RTC's execution context(s) and finalize it along with its contents.
def get_execution_context_services(self)
def on_aborting(self, id)
[ComponentAction CORBA interface] Transition Error State
def get_service_profiles(self)
[SDO interface] Getting SDO ServiceProfile
def get_status_list(self)
[SDO interface] Get SDO Status
def get_component_profile(self)
[RTObject CORBA interface] Get RTC's profile