目录
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标识。
Name | Type | Description |
---|---|---|
id | id | The id of the detector |
time | s | The time the event occured |
state | The event type, see above | |
vehID | The id of the vehicle which is on the detector | |
speed | m/s | The speed of the vehicle in this time step |
length | m | The length of the vehicle |
type | The type of the vehicle |
Name | Type | Description |
---|---|---|
gap | s | The 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. |
Name | Type | Description |
---|---|---|
occupancy | s | The time the vehicle was on the detector. |