sumo使用问题记录

安装

Ubuntu 16.04,sumo-0.32.0
基本参照https://blog.csdn.net/zhixiting5325/article/details/79302244和https://www.cnblogs.com/saworld/p/7698563.html中的过程安装。不过在第6步的make时提示找不到"libGL so"文件,通过locat命令可以找到该文件,不过双击提示link broken。
最终通过chmod 777取得文件夹权限,并用另一台电脑上的libGL.so文件替换掉损坏的文件后,解决问题。

使用

randomTrips.py

需要cd至/sumo/tools目录,并使用命令 python randomTrips.py ~/xx/xx/xx.net.xml -e 50 -l -o ~/xx/xx/xx.trips.xml
其中,如果要完成n辆车在t0和t1时刻间出发的设置,输入命令-b t0 -e t1 -p ((t1-t0)/n),其中-b为开始时间(默认为0),-e为终止时间(默认为3600),-p为生成一辆车的周期(默认为1)

duarouter.exe

duarouter则可以在任意路径,例如在上述/sumo/tools目录,使用命令 duarouter -n ~/xx/xx/xx.net.xml --route-files ~/xx/xx/xx.trips.xml -o /xx/xx/xx.rou.xml

猜你喜欢

转载自blog.csdn.net/dif8911/article/details/84552923