sumo运动文件导入ns3
来源:互联网 发布:怎么查找淘宝店铺 编辑:程序博客网 时间:2024/05/20 10:13
原网站链接:http://sumo.dlr.de/wiki/Tutorials/Trace_File_Generation
Simulation Scenario
For generating vehicular traces, You need a simulation scenario, consisting at least of a road network and routes. You may visit Tutorials/Hello Sumo orTutorials/Quick Start to learn how to get a scenario.
Generating a SUMO-trace
We assume You have the scenario and a configuration file named "myConfig.sumocfg". It may have a different name, of course. You should be able to start SUMO using Your configuration like this:
sumo -c myConfig.sumocfg
Now, we use the simulation to get an fcd output, a trace file in a SUMO-format. This file will be later converted into a trace file for one of the applications supported by Tools/TraceExporter. We generate an fcd output as following:
sumo -c myConfig.sumocfg --fcd-output sumoTrace.xml
And we will obtain the file "sumoTrace.xml".
Converting the Trace
We can now convert the vehicular traces in SUMO format into another format. For now, let's assume You would like to have a ns2 mobility file. We can generate one from the obtained fcd output using:
traceExporter.py --fcd-input sumoTrace.xml --ns2mobility-output ns2mobility.tcl 这块要注意,生成的tcl和traceExporter.py放在同一目录下可能没有权限,因此应该把tcl放到其他文件,即给tcl文件加上文件路径(你想放文件的路径)
We obtain the file "ns2mobility.tcl", which we can give ns2 as input.
Further Possibilities
Output Options
Tools/TraceExporter generates files for ns2/ns3, OMNET, Shawn, and PHEM. Please visit the Tools/TraceExporter manual page for further information about how to generate these files. Look for "output options".
Different Penetration Rates
Tools/TraceExporter allows to define different equipment / penetration rates using the --penetration<FLOAT>. <FLOAT> will be the amount of vehicles that are exported, where 1 is equal to 100 %. This means, if You want to have 10 % of vehicles to show up in Your ns2-trace, use:
traceExporter.py --penetration 0.1 \ --fcd-input sumoTrace.xml --ns2-mobilityoutput ns2mobility.tcl
The --seed <FLOAT> allows You to give different random number initialisations for choosing the vehicles to export.
- sumo运动文件导入ns3
- sumo生成的车辆运动文件导入ns3的方法。
- sumo生成trace,导入ns3并生成Animation过程(整理)
- NS3和SUMO联合仿真浅析
- SUMO文档019:导入网络文件(上)——OpenStreetMap
- SUMO文档016:XML文件验证
- doxygen查找NS3内部文件
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- NS3
- 从SUMO的输出文件中获得队列转移矩阵
- SUMO文档:轨迹文件生成(以ns2为例)
- SUMO应用工具:SUMO
- (1)数据结构是什么?
- 未完成~【POJ搜索】
- 逆元
- 一篇RxJava友好的文章(一)
- JAVA JFrame 窗口图标设置
- sumo运动文件导入ns3
- 高并发
- 四层和七层负载均衡的区别
- 欢迎使用CSDN-markdown编辑器
- 动态规划入门<三>
- Kafka的Log存储解析
- Yii2实用基础学习笔记(二):Html助手和Request组件 [ 2.0 版本 ]
- 我是怎么学英语的(四级没过如何突破听说读写)
- JZOJ 3053 【NOIP2012模拟10.25】旅行