def configure(self, rf): EZModule.configure(self, rf) self.bufImageOut, self.bufArrayOut = self.createImageBuffer(320, 200) self.imgOutPort = yarp.Port() self.imgOutPort.open('/JDVideo/img:o') self.video = EZBv4Video() self.video.openCVImageHook = self.onImage return True
def configure(self, rf): EZModule.configure(self, rf) self.lookAtPort = self.createInputPort('lookAt', 'buffered') self.pointLeftPort = self.createInputPort('pointLeft', 'buffered') self.pointRightPort = self.createInputPort('pointRight', 'buffered') self.patternPort = self.createInputPort('pattern', 'buffered') self.patterns = {} self._loadMovementPatterns() # initialize JD Humanoid poses self.ezb = EZB() return True
def close(self): self.imgOutPort.close() return EZModule.close(self)
def interruptModule(self): self.imgOutPort.interrupt() return EZModule.interruptModule(self)
def configure(self, rf): EZModule.configure(self, rf) self.faceInPort = self.createInputPort('face', 'buffered') self.positionOutPort = self.createOutputPort('position', 'buffered') return True