def updateImage(self, imageName): imageUtime = self.queue.getCurrentImageTime(imageName) if imageUtime != self.imageUtimes[imageName]: image = self.images[imageName] self.imageUtimes[imageName] = self.queue.getImage(imageName, image) if self.imageRotations180[imageName]: self.images[imageName].ShallowCopy(filterUtils.rotateImage180(image)) return imageUtime
def updateImage(self, imageName, robotName): # If the given imagename has not had its provider initialised, use the original utime to indicate that no # data was received. if not self.queue[robotName][imageName]: return self.imageUtimes[robotName][imageName] imageUtime = self.queue[robotName][imageName].get_current_image_time() if imageUtime != self.imageUtimes[robotName][imageName]: image = self.images[robotName][imageName] self.imageUtimes[robotName][imageName] = self.queue[robotName][ imageName].get_image(image) if self.imageRotations180[robotName][imageName]: self.images[robotName][imageName].ShallowCopy( filterUtils.rotateImage180(image)) return imageUtime