SUMO は,さまざまな形態のオブジェクト(車両,公共交通機関,歩行者)の交通シミュレーションを行う.
などの機能がある. 次のアプリから構成される.
先人に感謝
Web ページ: http://www.dlr.de/ts/en/desktopdefault.aspx/tabid-9883/16931_read-41000
nodes タグと node タグを使用
edges タグと edge タグを使用
routes タグ, vType タグ,routeタグ,vehicleタグを使用
端末で,次のコマンドを実行.
sumo -c quickstart.sumocfg --netstate-dump quickstart.dump
※ SUMOに付属しているtraceExporter.py を用いて,ファイル変換できる
次の手順は ns-2/ns-3 形式に変換している例
sumo -c .\quickstart.sumocfg --fcd-output sumoTrace.xml python 'C:\Program Files (x86)\DLR\Sumo\tools\traceExporter.py' --fcd-input .\sumoTrace.xml --ns2mobility-output ns2mobility.tcl
Hello
<nodes>
<node id="1" x="-250.0" y="0.0" />
<node id="2" x="+250.0" y="0.0" />
<node id="3" x="+251.0" y="0.0" />
</nodes>
<edges>
<edge from="1" id="1to2" to="2" />
<edge from="2" id="out" to="3" />
</edges>
<routes>
<vType accel="1.0" decel="5.0" id="Car" length="2.0" maxSpeed="100.0" sigma="0.0" />
<route id="route0" edges="1to2 out"/>
<vehicle depart="1" id="veh0" route="route0" type="Car" />
</routes>
<configuration>
<input>
<net-file value="hello.net.xml"/>
<route-files value="hello.rou.xml"/>
</input>
<time>
<begin value="0"/>
<end value="10000"/>
</time>
</configuration>
sumo -c quickstart.sumocfg --netstate-dump quickstart.dump
sumo-gui -c quickstart.sumocfg