|
最近用carla与sumo的联合仿真时,运行“run_synchronization.py”时提示错误:
File "/Carla/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py", line 304, in _get_sumo_net sumo_net = traci.sumolib.net.readNet(net_file) AttributeError: module 'traci' has no attribute 'sumolib'
最终是找到了问题所在:
这是因为sumolib是独立的包,不在traci里面,你需要把carla/Co-Simulation/Sumo/sumo_integration/sumo_simulation.py的304行的这一句代码改成sumo_net = sumolib.net.readNet(net_file)
参考文献
https://bytemeta.vip/repo/eclipse/sumo/issues/10363 |
|