20 nxtrtc_spec = [
"implementation_id",
"NXTRTC",
21 "type_name",
"NXTRTC",
22 "description",
"NXT sample component",
25 "category",
"example",
26 "activity_type",
"DataFlowComponent",
29 "lang_type",
"SCRIPT",
30 "conf.default.map",
"A,B",
37 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
48 self.
_d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
51 self.
_d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
54 self.
_d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
64 print "Connecting to NXT brick ...." 66 print "Connection established." 68 print "NXTBrick connection failed." 120 print sys.exc_info()[1]
128 manager.registerFactory(profile,
137 comp = manager.createComponent(
"NXTRTC")
142 mgr = OpenRTM_aist.Manager.init(sys.argv)
143 mgr.setModuleInitProc(MyModuleInit)
144 mgr.activateManager()
147 if __name__ ==
"__main__":
def onExecute(self, ec_id)
def bindParameter(self, param_name, var, def_val, trans=None)
template <typename vartype>=""> bool bindParameter(const char* param_name, VarType& var...
The Properties class represents a persistent set of properties.
def MyModuleInit(manager)
def __init__(self, manager)
def addOutPort(self, name, outport)
def onDeactivated(self, ec_id)
def addInPort(self, name, inport)
def onActivated(self, ec_id)
DataFlowComponentBase class.