Exemple #1
0
    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
Exemple #2
0
    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
Exemple #3
0
    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
Exemple #4
0
    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
Exemple #5
0
 def close(self):
     self.imgOutPort.close()
     return EZModule.close(self)
Exemple #6
0
 def interruptModule(self):
     self.imgOutPort.interrupt()
     return EZModule.interruptModule(self)
Exemple #7
0
 def close(self):
     self.imgOutPort.close()
     return EZModule.close(self)
Exemple #8
0
 def interruptModule(self):
     self.imgOutPort.interrupt()
     return EZModule.interruptModule(self)
Exemple #9
0
    def configure(self, rf):
        EZModule.configure(self, rf)

        self.faceInPort      = self.createInputPort('face', 'buffered')
        self.positionOutPort = self.createOutputPort('position', 'buffered')
        return True
Exemple #10
0
    def configure(self, rf):
        EZModule.configure(self, rf)

        self.faceInPort = self.createInputPort('face', 'buffered')
        self.positionOutPort = self.createOutputPort('position', 'buffered')
        return True