sumo中的模拟传感器3-Lanearea Detectors (E2)-摄像头

本文介绍了在SUMO交通模拟软件中配置和使用E2-Lanearea Detectors的方法,包括在.xml文件中设置传感器的采样周期和友好位置,以及启动SUMO时如何指定这些参数。此外,还详细解析了E2传感器的输出内容和文件格式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

Lanearea Detectors (E2)

配置方法

输出内容


参考链接:http://sumo.dlr.de/wiki/Simulation/Output/Lanearea_Detectors_(E2)

Lanearea Detectors (E2)

配置方法

(1)新建.xml文件(例如E1.xml),并在其中输入:

<additional>
  <laneAreaDetector id="E2_1" lane="-501.0.00_0" pos="0" endPos="5" friendlyPos="false" freq="100" file="out_E2.xml" 
   timeThreshold="1" speedThreshold="1.39" jamThreshold="10"/>
</additional> 

其中,freq表示传感器的采样周期,friendlyPos表示当设置的pos超出lane的范围是,自动设置位置为lane的起点或者终点。

timeThreshold float

The time-based threshold that describes how much time has to pass until a vehicle is recognized as halting; in s, default: 1s.

speedThreshold float The speed-based threshold that describes how slow a vehicle has to be to be recognized as halting; in m/s, default: 5/3.6m/s.
jamThreshold float The minimum distance to the next standing vehicle in order to make this vehicle count as a participant to the jam; in m, default: 10m.

(2)在命令行启动sumo时输入如下命令:

sumo-gui -c Crossing8.sumo.cfg --additional-files E1.xml

或者在cfg文件中添加相应语句,如下:

<configuration>
    <input>
        <net-file value="Crossing8.net.x
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值