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

目录

Instantaneous Induction Loops Detectors

配置方法

输出内容


参考链接:http://sumo.dlr.de/wiki/Simulation/Output/Instantaneous_Induction_Loops_Detectors

Instantaneous Induction Loops Detectors

配置方法

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

<additional>
  <instantInductionLoop id="instantE1_1" lane="-501.0.00_0" pos="1" file="out_instantE1.xml"/>
</additional> 

(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的输出文件如下:

<instantE1 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/instant_e1_file.xsd">
    <instantOut id="instantE1_1" time="61.89" state="enter" vehID="9" speed="6.11" length="5.00" type="DEFAULT_VEHTYPE"/>
    <instantOut id="instantE1_1" time="62.00" state="stay" vehID="9" speed="6.11" length="5.00" type="DEFAULT_VEHTYPE"/>
    <instantOut id="instantE1_1" time="62.58" state="leave" vehID="9" speed="7.43" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.69"/>
    <instantOut id="instantE1_1" time="67.54" state="enter" vehID="13" speed="8.07" length="5.00" type="DEFAULT_VEHTYPE" gap="4.96"/>
    <instantOut id="instantE1_1" time="68.00" state="stay" vehID="13" speed="8.07" length="5.00" type="DEFAULT_VEHTYPE"/>
    <instantOut id="instantE1_1" time="68.13" state="leave" vehID="13" speed="9.93" length="5.00" type="DEFAULT_VEHTYPE" occupancy="0.59"/>
</instantE1>

其中:

输出通过该传感器的所有车辆的信息。

每辆车输出三个时刻的值:进入线圈时、在线圈上时,离开线圈时,用输出文件中的state标识。

NameTypeDescription
ididThe id of the detector
timesThe time the event occured
state The event type, see above
vehID The id of the vehicle which is on the detector
speedm/sThe speed of the vehicle in this time step
lengthmThe length of the vehicle
type The type of the vehicle
NameTypeDescription
gapsThe time gap between the vehicle which left the detector before and the one which entered it now; please note that this value is generated only, if another vehicle has already left the detector.
NameTypeDescription
occupancysThe time the vehicle was on the detector.

 

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值