7 \brief ModuleDescription 28 import AutoTest, AutoTest__POA
29 from omniORB
import CORBA
38 AutoTestOut_spec = [
"implementation_id",
"AutoTestOut",
39 "type_name",
"AutoTestOut",
40 "description",
"ModuleDescription",
42 "vendor",
"HarumiMiyamoto",
43 "category",
"example",
44 "activity_type",
"STATIC",
47 "lang_type",
"SCRIPT",
48 "exec_cxt.periodic.rate",
"1.0",
56 \brief ModuleDescription 59 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
86 self.
_file=open(
'original-data')
88 print "Can not open 'original-data' file." 100 str1 = self.
_file.readline()
101 str2 = self.
_file.readline()
102 str3 = self.
_file.readline()
108 str2 = str2.split(
' ')
109 floatSeq.append(float(str2[0]))
110 floatSeq.append(float(str2[1]))
111 floatSeq.append(float(str2[2]))
112 floatSeq.append(float(str2[3]))
113 floatSeq.append(float(str2[4]))
130 manager.registerFactory(profile,
138 comp = manager.createComponent(
"AutoTestOut")
143 mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
144 mgr.setModuleInitProc(MyModuleInit)
145 mgr.activateManager()
148 if __name__ ==
"__main__":
RT Conponent CORBA service/consumer Port.
def onActivated(self, ec_id)
The Properties class represents a persistent set of properties.
def AutoTestOutInit(manager)
def addOutPort(self, name, outport)
def MyModuleInit(manager)
def __init__(self, manager)
def onExecute(self, ec_id)
DataFlowComponentBase class.
def onDeactivated(self, ec_id)