示例#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)
示例#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)
示例#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)
示例#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)