15 mod_spec = [
"implementation_id",
"TkMotorPosComp",
16 "type_name",
"TkMotorPosComp",
17 "description",
"Tk Motor component (position 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), [])
58 indata = self._tkIn.read()
63 self.
_v[i] = val[i] * 10
64 tkm.set_angle(self.
_v)
66 print "Exception cought in onExecute()" 80 manager.registerFactory(profile,
88 comp = manager.createComponent(
"TkMotorPosComp")
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)
def onExecute(self, ec_id)
def __init__(self, manager)
The Properties class represents a persistent set of properties.
def onShutdown(self, ec_id)
def TkMotorPosCompInit(manager)
def addInPort(self, name, inport)
DataFlowComponentBase class.
def onActivated(self, ec_id)