Ejemplo n.º 1
0
def get_maps_path(name=''):
    """
    """
    global __maps_path
    assert_relative_path(name)

    if not __maps_path:
        robot = pal_environ.get_robot()
        pkg = pal_environ.get_maps_pkg(robot)
        __maps_path = rospkg.RosPack().get_path(pkg)

    return os.path.join(__maps_path, name)
Ejemplo n.º 2
0
def get_maps_path(name=''):
    """
    """
    global __maps_path
    assert_relative_path(name)

    if not __maps_path:
        robot = pal_environ.get_robot()
        pkg = pal_environ.get_maps_pkg(robot)
        __maps_path = rospkg.RosPack().get_path(pkg)

    return os.path.join(__maps_path, name)
Ejemplo n.º 3
0
def get_maps_path(name='', robot=None):
    """
    """
    global __maps_path
    assert_relative_path(name)

    if not __maps_path:
        if robot is None:
            robot = pal_environ.get_robot()
        pkg = pal_environ.get_maps_pkg(robot)
        __maps_path = os.path.join(os.getenv('HOME'), '.pal', pkg)

    return os.path.join(__maps_path, name)
Ejemplo n.º 4
0
def get_maps_path(name='', robot=None):
    """
    """
    global __maps_path
    assert_relative_path(name)

    if not __maps_path:
        if robot is None:
            robot = pal_environ.get_robot()
        pkg = pal_environ.get_maps_pkg(robot)
        __maps_path = os.path.join(os.getenv('HOME'), '.pal', pkg)

    return os.path.join(__maps_path, name)