Changeset 4050
- Timestamp:
- 05/31/07 11:27:12 (6 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
experimental/components/image_capture/trunk/image_capture/image_capture.py
r4042 r4050 44 44 def __init__(self, uuid, label, poa): 45 45 CF._objref_Resource.__init__(self._this()) 46 print "image_capture_i __init__: " + label47 46 self.naming_service_name = label 48 47 self.poa = poa … … 57 56 58 57 def start(self): 59 print "image_capture start called"60 print "setting up the process thread in image_capture\n"61 58 self.work_mod.process_thread = threading.Thread(target=self.work_mod.Process) 62 59 self.work_mod.process_thread.start() … … 67 64 68 65 def getPort(self, id): 69 print "image_capture getPort called"70 66 if str(id) == "image_out": 71 67 return self.outPort0_var … … 77 73 78 74 def configure(self, props): 79 print "image_capture configure called\n"80 75 buffer_size = 0 81 76 … … 104 99 class dataOut_realChar_i(CF__POA.Port): 105 100 def __init__(self, parent, name): 106 107 print "initializing dataOut_realChar_i in image_capture"108 109 101 self.parent = parent 110 102 self.outPorts = {} … … 120 112 121 113 def connectPort(self, connection, connectionId): 122 print "connectPort in image_capture called\n"123 114 port = connection._narrow(standardInterfaces__POA.realChar) 124 115 self.outPorts[str(connectionId)] = port … … 142 133 143 134 def Process(self): 144 print "Process in image_capture called\n"145 146 135 while self.is_running: 147 136 while len(self.data_buffer) > 0: … … 149 138 new_data = self.data_buffer.pop() 150 139 self.data_buffer_lock.release() 151 print new_data[0]152 140 for port in self.outPorts.values(): 153 141 port.pushPacket(new_data[0]) … … 163 151 164 152 def __init__(self, uuid, label): 165 print "image_capture is initializing its orb"166 153 # initialize the orb 167 154 self.orb = CORBA.ORB_init() … … 182 169 rootContext.rebind(name, image_capture_var) 183 170 184 print "image_capture is running its orb"185 171 self.orb.run() 186 172