def get_ip_ur(ur_number, offline_simulation=False):
    """
    Function that gets the ip of the robot

    Args:
        ur_number: ID of robot (1,2 or 3)

    Returns:
        ip: string.
    """
    subnet = '192.168.10.'
    if not offline_simulation:
        ip = subnet + str(ur_number + 9)
    else:
        ip = 'localhost'
    print(ip)
    return ip