Kin-Zhang / mmfn

[IROS'22] MMFN: Multi-Modal Fusion Net for End-to-End Autonomous Driving
MIT License
94 stars 9 forks source link

在build_rmap的时候Permission denied #6

Closed hrz2000 closed 1 year ago

hrz2000 commented 1 year ago
def build_rmap(all_path: list, lib_path):#['/home/BuaaClass02/hrz/mmfn/data/nss_0702/Town02_short/Town02_3_11_23_21_05_32/opendrive'] [tmp_dir] /home/BuaaClass02/hrz/mmfn/assets/package
    print("start to build rmap. map_number:", len(all_path))
    opendrive2vec = os.path.join(lib_path,"rough_map_node")#/home/BuaaClass02/hrz/mmfn/assets/package/rough_map_node
    if not os.path.exists(opendrive2vec):
        print(f"{bc.FAIL}Please install the lib through readme{bc.ENDC}, there will not vector map saved!")
        return True
    is_error = False
    for path in tqdm(all_path):
        cmd2 = opendrive2vec + " " + path#/home/BuaaClass02/hrz/mmfn/assets/package/rough_map_node /home/BuaaClass02/hrz/mmfn/data/nss_0702/Town02_short/Town02_3_11_23_21_05_32/opendrive
        print(cmd2)
        tmp = os.popen(cmd2).readlines()
        # print(tmp[0])
        if (tmp[0][-2:]!="ok"):
            is_error = True
            break

其中在执行tmp = os.popen(cmd2).readlines()的时候报错,bash: /home/BuaaClass02/hrz/mmfn/assets/package/rough_map_node: Permission denied,注意到 https://github.com/Kin-Zhang/mmfn/issues/1 这个里面提到是setup_lib的问题,我安装了,但是执行的时候提示Permission denied,应该怎么办呢

安装lib的过程似乎是没有问题的,

(plant_h) BuaaClass02@tsinghua-vm2:~/hrz/mmfn$ ./scripts/setup_lib.sh
Hit:1 http://mirrors.163.com/ubuntu bionic InReleaseHit:2 http://mirrors.163.com/ubuntu bionic-updates InReleaseHit:3 http://mirrors.163.com/ubuntu bionic-backports InRelease
Hit:4 http://mirrors.163.com/ubuntu bionic-security InRelea                                                                            "tsinghua-vm2" 21:10 23-Nov-223 23-Nov-22se
Get:5 https://download.docker.com/linux/ubuntu bionic InRelease [64.4 kB]
Fetched 64.4 kB in 2s (41.2 kB/s)                         
Reading package lists... Done
Building dependency tree
Reading state information... Done
77 packages can be upgraded. Run 'apt list --upgradable' to see them.
Reading package lists... Done
Building dependency tree
Reading state information... Done
protobuf-compiler is already the newest version (3.0.0-9.1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 77 not upgraded.
your system is 18.04, cp opendrive to vec lib now...

非常期待您的回答~

hrz2000 commented 1 year ago

文件权限的问题(我犯傻了),已解决