Example #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)
Example #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)
Example #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)
Example #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)