15 mod_spec = [
"implementation_id",
"TkMotorComp",
16 "type_name",
"TkMotorComp",
17 "description",
"Tk Motor component (velocity control)",
19 "vendor",
"Noriaki Ando and Shinji Kurihara",
20 "category",
"Generic",
21 "activity_type",
"DataFlowComponent",
33 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
40 self.
_tk_data = RTC.TimedFloatSeq(RTC.Time(0,0), [])
57 indata = self.
_tkIn.read()
62 self.
_v[i] += val[i] / 2
63 tkm.set_angle(self.
_v)
65 print "Exception cought in onExecute()" 79 manager.registerFactory(profile,
88 comp = manager.createComponent(
"TkMotorComp")
90 print "Componet created" 95 mgr = OpenRTM_aist.Manager.init(sys.argv)
99 mgr.setModuleInitProc(MyModuleInit)
102 mgr.activateManager()
112 if __name__ ==
"__main__":
def MyModuleInit(manager)
The Properties class represents a persistent set of properties.
def TkMotorCompInit(manager)
def onShutdown(self, ec_id)
def onActivated(self, ec_id)
def addInPort(self, name, inport)
def onExecute(self, ec_id)
def __init__(self, manager)
DataFlowComponentBase class.