10 consolein_spec = [
"implementation_id",
"ConsoleIn",
11 "type_name",
"ConsoleIn",
12 "description",
"Console input component",
14 "vendor",
"Shinji Kurihara",
15 "category",
"example",
16 "activity_type",
"DataFlowComponent",
19 "lang_type",
"script",
25 OpenRTM_aist.DataFlowComponentBase.__init__(self, manager)
29 self.
_data = RTC.TimedLong(RTC.Time(0,0),0)
36 print "Please input number: ",
37 self._data.data = long(sys.stdin.readline())
38 print "Sending to subscriber: ", self._data.data
45 manager.registerFactory(profile,
50 comp = manager.createComponent(
"ConsoleIn")
56 mgr = OpenRTM_aist.Manager.init(sys.argv)
60 mgr.setModuleInitProc(MyModuleInit)
72 if __name__ ==
"__main__":
The Properties class represents a persistent set of properties.
def onExecute(self, ec_id)
def MyModuleInit(manager)
def addOutPort(self, name, outport)
def __init__(self, manager)
DataFlowComponentBase class.