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." 121 print sys.exc_info()[1]
129 manager.registerFactory(profile,
138 comp = manager.createComponent(
"NXTRTC")
143 mgr = OpenRTM_aist.Manager.init(sys.argv)
144 mgr.setModuleInitProc(MyModuleInit)
145 mgr.activateManager()
148 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 onActivated(self, ec_id)
def addOutPort(self, name, outport)
def addInPort(self, name, inport)
def __init__(self, manager)
DataFlowComponentBase class.
def onDeactivated(self, ec_id)