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",
56 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
67 self.
_d_vel = RTC.TimedFloatSeq(RTC.Time(0,0),[])
70 self.
_d_pos = RTC.TimedFloatSeq(RTC.Time(0,0),[])
73 self.
_d_sens = RTC.TimedFloatSeq(RTC.Time(0,0),[])
83 print "Connecting to NXT brick ...." 85 print "Connection established." 87 print "NXTBrick connection failed." 133 manager.registerFactory(profile,
142 comp = manager.createComponent(
"NXTRTC")
147 mgr = OpenRTM_aist.Manager.init(len(sys.argv), sys.argv)
149 mgr.setModuleInitProc(MyModuleInit)
150 mgr.activateManager()
153 if __name__ ==
"__main__":
def onActivated(self, ec_id)
def __init__(self, manager)
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 onDeactivated(self, ec_id)
def __call__(self, pData)
def onExecute(self, ec_id)
def addOutPort(self, name, outport)
def __init__(self, nxtbrick_, map_)
def addInPort(self, name, inport)
def MyModuleInit(manager)
DataFlowComponentBase class.
def NXTRTC_callbackInit(manager)