def move(self, rel_motion): """Move particle by creating new one and setting position""" new_x, new_y, new_orientation = pmm.prob(self.pose(), rel_motion) new_robot = Robot() new_robot.set(new_x, new_y, new_orientation) return new_robot
def move(self, rel_motion): new_x, new_y, new_orientation = pmm.prob(self.pose(), rel_motion) new_robot = Robot() new_robot.set(new_x, new_y, new_orientation) return new_robot