code: def update(self):
          '''
          Updates LaserData.
          '''
          if self.hasproxy():
              laserD = LaserData()
              values = []
              data = self.proxy.getLaserData()
  
              #laserD.values = laser.distanceData
              for i in range (data.numLaser):
                  values.append(data.distanceData[i] / 1000.0) 
  
              laserD.maxAngle = data.maxAngle
              laserD.minAngle = data.minAngle
              laserD.maxRange = data.maxRange
              laserD.minRange = data.minRange
              laserD.values = values
  
  
              self.lock.acquire()
              self.laser = laserD
              self.lock.release(f update(self):
          '''
          Updates LaserData.
          '''
          if self.hasproxy():
              laserD = LaserData()
              values = []
              data = self.proxy.getLaserData()
  
              #laserD.values = laser.distanceData
              for i in range (data.numLaser):
                  values.append(data.distanceData[i] / 1000.0) 
  
              laserD.maxAngle = data.maxAngle
              laserD.minAngle = data.minAngle
              laserD.maxRange = data.maxRange
              laserD.minRange = data.minRange
              laserD.values = values
  
  
              self.lock.acquire()
              self.laser = laserD
              self.lock.release()
docs: Updates LaserData.