目录
参考链接: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