def __init__(self, position, discrete=False):
    '\n        Initializes a observation in light dark domain.\n\n        Args:\n            position (tuple): position of the robot.\n        '
    self._discrete = discrete
    if (len(position) != 2):
        raise ValueError('Observation position must be a vector of length 2')
    if self._discrete:
        self.position = position
    else:
        self.position = (round(position[0], Observation.PRECISION), round(position[1], Observation.PRECISION))
Initializes a observation in light dark domain.

Args:
    position (tuple): position of the robot.
def __init__(self, position, discrete=False):
    '\n        Initializes a observation in light dark domain.\n\n        Args:\n            position (tuple): position of the robot.\n        '
    self._discrete = discrete
    if (len(position) != 2):
        raise ValueError('Observation position must be a vector of length 2')
    if self._discrete:
        self.position = position
    else:
        self.position = (round(position[0], Observation.PRECISION), round(position[1], Observation.PRECISION))