def _scan_received(self, msg): data = msg.ranges munger = LaserScanDataMunger() smoothed = munger.munge(data) self.angle_to_wall, self.distance_to_wall = self._find_wall(smoothed) self.new_person = self._set_new_person(smoothed)
def _scan_received(self, msg): data = msg.ranges munger = LaserScanDataMunger() smoothed = munger.munge(data) self.angle_to_man, self.distance_to_man = self._find_man(smoothed)