10 import SimpleService, SimpleService__POA
14 myserviceprovider_spec = [
"implementation_id",
"MyServiceProvider",
15 "type_name",
"MyServiceProvider",
16 "description",
"MyService Provider Sample component",
18 "vendor",
"Shinji Kurihara",
19 "category",
"example",
20 "activity_type",
"DataFlowComponent",
23 "lang_type",
"script",
33 print self.
_cnt,
": ", val
51 print "MyService::echo() was called." 53 print "Message: ", msg
55 print "MyService::echo() was finished." 59 print "MyService::get_echo_history() was called." 66 print "MyService::set_value() was called." 67 print "Current value: ", self.
_value 71 print "MyService::get_value() was called." 72 print "Current value: ", self.
_value 76 print "MyService::get_value_history() was called." 85 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
108 manager.registerFactory(profile,
118 comp = manager.createComponent(
"MyServiceProvider")
121 rtobj = manager.getPOA().servant_to_reference(comp)._narrow(RTC.RTObject) 123 ecs = rtobj.get_execution_context_services() 124 ecs[0].activate_component(rtobj) 131 mgr = OpenRTM_aist.Manager.init(sys.argv)
135 mgr.setModuleInitProc(MyModuleInit)
138 mgr.activateManager()
148 if __name__ ==
"__main__":
def get_echo_history(self)
def MyModuleInit(manager)
RT Conponent CORBA service/consumer Port.
def push_back(seq, elem)
Push the new element back to the CORBA sequence.
def get_value_history(self)
def for_each(seq, f)
Apply the functor to all CORBA sequence elements.
def __init__(self, manager)
The Properties class represents a persistent set of properties.
def MyServiceProviderInit(manager)
def set_value(self, value)
DataFlowComponentBase class.