sumo

sumo第一篇---文件组成介绍

梦想与她 提交于 2019-12-04 22:00:43
1、net.xml文件:    bin文件夹下面有一个netconvert.exe文件,这个东西就是 用来转换net文件的。   命令行如下:( 用管理员身份打开cmd )   netconvert --osm-files myTest_china.osm -o myTest.net.xml   netcovert就是可执行文件是可执行文件,也可以说是转换工具   --osm-files是输入部分,即输入osm类型文件,后面是文件名   -o myTest.net.xml就是输出部分,-o是output的意思,表示这是输出文件   执行过后,会发现多了一个文件,即获得了net.xml文件, 也就是路网文件 2、rou.xml文件:   1)、sumo\tools\trip文件夹下。名字叫做radomTrips.py。   random就是随机的意思,而trip是SUMO中的一个术语,就是表示车 辆从一个条   公路 行驶到另外一条公路的过程。   randomTrips.py -n myTest.net.xml -l -e 600 -o myTest.trips.xml   -n myTest.net.xml表示输入,-n表述输入的类型是net类 型,其实-n等价于--net,   -n是一种简写的方式,后面的-l -e 600是随 机工具的配置。   2)

Dynamical transmission range in the ieee802.11p module

旧城冷巷雨未停 提交于 2019-12-04 21:13:45
I'm a MRs student , i use sumo 0.25.0 and veins 4.4 within omnet++ 5.0 .I'm working in the IEEE0802.11p module. Including my proposition i will use a formula that change the transmission range calculator into dynamical calculator which communicate with the simulation to get information from it like (mean speed, average distance from front-bumper to front-bumper between vehicles ...). here is the transmission range formula that I will use and the Article containing the formula my question is where can i find the transmission range calculator and where can I put my code in the application layer

veins车载通信仿真框架(1)--veins安装

匿名 (未验证) 提交于 2019-12-03 00:22:01
由于实验室的需要,这段时间需要利用veins进行车载通信的仿真,第一次写博客,一方面想把自己学习过程中的经验分享给大家,另一方面也把他当做笔记,没事儿自己也复习一下 安装 关于veins的安装主要有两种方式: 第一种方式需要同时下载并安装OMNET++以及SUMO,并下载及加载veins,本人利用这种方式在window,linux以及macos安装觉得都非常的麻烦,而且成功概率不到50%,如果想用这种方式安装的话,CSDN提供了多个文章教大家,这里就不多说了,只是提醒大家要注意OMNET++以及SUMO的安装版本,在这里附上官方教程: http://veins.car2x.org/tutorial/ 第二种方式则使用ova虚拟包,在虚拟机上安装,本人比较推荐这种方式,首先安装简单,只需要利用虚拟机进行安装,省去了OMNET++,SUMO安装及配置的麻烦(尤其是OMNET++,每一次安装都要花费很长时间,并且不知道什么时候出现各种问题 );其次,至少在写这篇博客的时候,SUMO的官网我没有办法进入,只能通过百度查找,免费能用的还没几个;最后虚拟机的备份功能保证即使误操作,也能恢复到安全状态(本人有好几次误操作后,就不知道如何恢复,只好重装),这里附上ova虚拟包地址 http://veins.car2x.org/documentation/instant-veins/ Instant

MATLAB system does not run applications

对着背影说爱祢 提交于 2019-12-03 00:18:57
问题 I am trying to interact with SUMO via MATLAB according to script here. At line 43, the MATLAB command is system(['sumo-gui -c ' '"' scenarioPath '"' ' --remote-port 8873 --start&']); Since I am using Ubuntu 16.04.1 LTS , I fixed scenarioPath . Now, this line is equal to system('sumo-gui -c "/path/to/SUMO/docs/tutorial/traci_tls/data/cross.sumocfg" --remote-port 8873 --start&'); When I run it nothing does happen ( ans=0 ) while when I test the command in bash command line the sumo-gui

sumo中的模拟传感器2-Instantaneous Induction Loops Detectors

匿名 (未验证) 提交于 2019-12-02 23:03:14
Ŀ¼ Instantaneous Induction Loops Detectors 配置方法 输出内容 参考链接: http://sumo.dlr.de/wiki/Simulation/Output/Instantaneous_Induction_Loops_Detectors Instantaneous Induction Loops Detectors 配置方法 (1)新建.xml文件(例如instantE1.xml),并在其中输入: (2)在命令行启动sumo时输入如下命令: sumo-gui -c Crossing8.sumo.cfg --additional-files E1.xml 或者在cfg文件中添加相应语句,如下: <configuration> <input> <net-file value="Crossing8.net.xml"/> <route-files value="Crossing8.rou.xml"/> <step-length value="1"/> <additional-files value="E1.xml"/> </input> </configuration> 输出内容 <instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi

## SUMO入门(六) - TraCI

匿名 (未验证) 提交于 2019-12-02 22:56:40
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/gaoruowen1/article/details/84111893 SUMO入门(六) - TraCI TraCI TraCI简介 TraCI 是 “ 流量控制接口 Traffic Control Interface ”。通过访问正在进行的道路交通模拟,它可以检索模拟对象的值,并“在线”操纵它们的行为。 TraCI还允许将SUMO与 通信网络模拟器 结合使用,以模拟车辆通信。有关可用解决方案的列表,请参阅Topics/V2X。 使用TraCI SUMO启动 TraCI使用基于TCP的客户端/服务器体系结构来提供对SUMO的访问。 因此,SUMO充当使用其他命令行选项启动的服务器: INT > ,其中 < INT > 是SUMO侦听输入连接的端口。可以连接的客户端数量可以作为附加选项 INT > 给出,其中1是默认值。 请注意,在多客户端方案中,您必须使用 SetOrder-command 明确指定客户端的执行顺序 当使用 INT > 选项启动时,SUMO仅准备模拟并等待外部应用程序连接并接管控制。 当SUMO作为TraCI服务器运行时,将忽略 --end < TIME > 选项,SUMO将一直运行,直到客户端要求模拟结束。即,客户端通过发出关闭命令来关闭模拟。

MATLAB system does not run applications

孤街浪徒 提交于 2019-12-02 13:03:25
I am trying to interact with SUMO via MATLAB according to script here . At line 43, the MATLAB command is system(['sumo-gui -c ' '"' scenarioPath '"' ' --remote-port 8873 --start&']); Since I am using Ubuntu 16.04.1 LTS , I fixed scenarioPath . Now, this line is equal to system('sumo-gui -c "/path/to/SUMO/docs/tutorial/traci_tls/data/cross.sumocfg" --remote-port 8873 --start&'); When I run it nothing does happen ( ans=0 ) while when I test the command in bash command line the sumo-gui application starts. I believe the problem is even further. when I try the other applications: system('firefox

Calculating distance between cars nodes VEINS

会有一股神秘感。 提交于 2019-12-01 13:10:39
问题 I am new to VEINS and trying to implement weighted p-persistence inside MyVeinsApp.cc. Distance between the sending node and receiving is used in that formula. I saw the 2 functions below. virtual Coord& getSenderPos(); virtual const Coord& getSenderPos() const {return const_cast<WaveShortMessage*>(this)->getSenderPos();} Should I use one of those methods to calculate the distance between nodes? Please advise on the best approach. 回答1: For the distance you obviously need the two positions.

Error while running example of the veins in the last step of the installation

痞子三分冷 提交于 2019-11-29 18:37:32
did the installation of the veins according to the tutorial of the site ( http://veins.car2x.org/tutorial/ ) using the operating system windows 10, but in the last step, when executing the omnetpp.ini of the example of the veins the code compiles but the execution in qtnev gives the following error: Help me please Cannot evaluate parameter ‘headerLength’: (omnetpp::cDoubleParlmpl)headerLength: Cannot cast from type double to integer – in module (Mac1609_4) RSUExampleScenario.rsu[0].nic.mac1609_4 (id=12), during network initialization This was introduced in a recent version of OMNeT++, which no

Veins Multiple Applications in multiples Vehicle types

那年仲夏 提交于 2019-11-29 08:48:15
in my simulation using OMNeT++, Veins, and SUMO i want run multiple applications according to their vehicle type, as specified in the .rou.xml file using type="XXX" For example: <vehicle ... type="private" ... > runs APP_private (using something like *.node[*].applType ="APP_private" ) <vehicle ... type="bus" ... > runs APP_bus (using something like *.node[*].applType ="APP_bus" ) How can I define this in omnetpp.ini ? Veins 4.6 allows you to set any or all of the moduleType , moduleName , and moduleDisplayString parameters not just to a string (which will set the OMNeT++ module type, module