12 configsample_spec = [
"implementation_id",
"ConfigSample",
13 "type_name",
"ConfigSample",
14 "description",
"Configuration example component",
16 "vendor",
"Shinji Kurihara",
17 "category",
"example",
18 "activity_type",
"DataFlowComponent",
21 "lang_type",
"script",
22 "conf.default.int_param0",
"0",
23 "conf.default.int_param1",
"1",
24 "conf.default.double_param0",
"0.11",
25 "conf.default.double_param1",
"9.9",
26 "conf.default.str_param0",
"hoge",
27 "conf.default.str_param1",
"dara",
28 "conf.default.vector_param0",
"0.0,1.0,2.0,3.0,4.0",
44 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
45 print "ConfigSample constructor." 65 print "\n Please change configuration values from RtcLink" 75 print "---------------------------------------" 76 print " Active Configuration Set: ", self.
_configsets.getActiveId(),c
77 print "---------------------------------------" 89 print "---------------------------------------" 98 for idx
in range(maxlen - curlen):
101 print "Updating.... ",
ticktack(), c
104 for idx
in range(12 + maxlen):
119 manager.registerFactory(profile,
127 comp = manager.createComponent(
"ConfigSample")
130 poa = manager.getPOA()
131 obj = comp._default_POA().servant_to_reference(comp)
132 rtobj = obj._narrow(RTC.RTObject)
134 ecs = rtobj.get_owned_contexts()
135 ecs[0].activate_component(rtobj)
140 mgr = OpenRTM_aist.Manager.init(sys.argv)
144 mgr.setModuleInitProc(MyModuleInit)
147 mgr.activateManager()
156 if __name__ ==
"__main__":
def bindParameter(self, param_name, var, def_val, trans=None)
template <typename vartype>=""> bool bindParameter(const char* param_name, VarType& var...
The Properties class represents a persistent set of properties.
def __init__(self, manager)
def ConfigSampleInit(manager)
def MyModuleInit(manager)
def onExecute(self, ec_id)
DataFlowComponentBase class.