19 sys.path.insert(1,
"../")
20 sys.path.insert(1,
"../RTM_IDL")
28 configsample_spec = [
"implementation_id",
"TestComp",
29 "type_name",
"TestComp",
30 "description",
"Test example component",
32 "vendor",
"Shinji Kurihara, AIST",
33 "category",
"example",
34 "activity_type",
"DataFlowComponent",
37 "lang_type",
"script",
39 "conf.default.int_param0",
"0",
40 "conf.default.int_param1",
"1",
41 "conf.default.double_param0",
"0.11",
42 "conf.default.double_param1",
"9.9",
43 "conf.default.str_param0",
"hoge",
44 "conf.default.str_param1",
"dara",
45 "conf.default.vector_param0",
"0.0,1.0,2.0,3.0,4.0",
54 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
104 manager.registerFactory(profile,
107 com = manager.createComponent(
"TestComp")
113 self.
manager = OpenRTM_aist.Manager.init(sys.argv)
119 self.
manager.setModuleInitProc(TestCompInit)
122 self.assertEqual(organization.set_members([com.getObjRef()]),
True)
124 self.assertEqual(organization.remove_member(
"TestComp0"),
True)
125 self.assertEqual(organization.add_members([com.getObjRef()]),
True)
126 organization.removeAllMembers()
131 self.assertEqual(self.
composite.onInitialize(), RTC.RTC_OK)
136 self.assertEqual(self.
composite.onActivated(
None), RTC.RTC_OK)
141 self.assertEqual(self.
composite.onDeactivated(
None), RTC.RTC_OK)
146 self.assertEqual(self.
composite.onReset(
None), RTC.RTC_OK)
156 if __name__ ==
'__main__':
def onStartup(self, ec_id)
def test_onActivated(self)
def onAborting(self, ec_id)
The Properties class represents a persistent set of properties.
def test_onDeactivated(self)
def test_organization(self)
def onRateChanged(self, ec_id)
def TestCompInit(manager)
def test_delegatePort(self)
def onDeactivated(self, ec_id)
PeriodicECSharedComposite class.
def onStateUpdate(self, ec_id)
def onActivated(self, ec_id)
def onExecute(self, ec_id)
def onShutdown(self, ec_id)
def test_onInitialize(self)
DataFlowComponentBase class.
def __init__(self, manager)