def onModelChanged(self, model):
        newTrackPosition = np.array(self.jointController.q[:3])

        delta = newTrackPosition - self.lastTrackPosition
        for i in xrange(3):
            if not self.followAxes[i]:
                delta[i] = 0.0

        self.lastTrackPosition = newTrackPosition

        c = self.view.camera()

        oldFocalPoint = np.array(c.GetFocalPoint())
        oldPosition = np.array(c.GetPosition())

        c.SetFocalPoint(oldFocalPoint + delta)
        c.SetPosition(oldPosition + delta)

        self.view.render()
dataset/ETHPy150Open RobotLocomotion/director/src/python/director/cameracontrol.py/RobotModelFollower.onModelChanged/original