13 controller_spec = [
"implementation_id",
"Controller",
14 "type_name",
"Controller",
15 "description",
"Controller component",
17 "vendor",
"Shinji Kurihara, AIST",
18 "category",
"example",
19 "activity_type",
"DataFlowComponent",
22 "lang_type",
"SCRIPT",
27 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
31 self.
_d_in = RTC.TimedFloat(RTC.Time(0,0),0)
33 self.
_d_out = RTC.TimedFloat(RTC.Time(0,0),0)
46 if self.
_inIn.isNew():
47 data = self.
_inIn.read()
48 print "Controller Received data: ", data.data
49 self.
_d_out.data = data.data *2
58 manager.registerFactory(profile,
66 comp = manager.createComponent(
"Controller")
71 mgr = OpenRTM_aist.Manager.init(sys.argv)
72 mgr.setModuleInitProc(MyModuleInit)
76 if __name__ ==
"__main__":
The Properties class represents a persistent set of properties.
def ControllerInit(manager)
def __init__(self, manager)
def addOutPort(self, name, outport)
def MyModuleInit(manager)
def addInPort(self, name, inport)
DataFlowComponentBase class.
def onExecute(self, ec_id)