Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] SSM Device


Hello,
      I’m trying to test the SSM Device, I ran a single vehicle, and the output file  ssm_v0.xml showed nothing as the following figure, I think it’s because there’s only one vehicle and no conflict. So I tried the traffic flow with the following code, but the ssm_v0.xml still showed no conflict information as follows:
The code for a single vehicle in rou.xml is :
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
<vType id="pass" speedFactor="1" speedDev="0.333" maxSpeed="70" sigma="0.8"/>
<vehicle id="v1" type="pass" depart="0" color="1,0,0">
<route edges="r1 r2"/>
<param key="has.ssm.device" value="true"/>
<param key="device.ssm.measures" value="TTC DRAC PET"/>
<param key="device.ssm.thresholds" value="3.0 3.0 2.0"/>
<param key="device.ssm.range" value="50.0" />
<param key="device.ssm.extratime" value="5.0" />
<param key="device.ssm.file" value="ssm_v0.xml" />
<param key="device.ssm.trajectories" value="false" />
<param key="device.ssm.geo" value="false" />
</vehicle>
</routes>
The code for flow in rou.xml is :
<routes>
<route id="route1" edges="r1 r2"/>
<vType id="pass" speedFactor="1" speedDev="0.333" maxSpeed="70" sigma="0.8">
<param key="has.ssm.device" value="true"/>
<param key="device.ssm.measures" value="TTC DRAC PET"/>
<param key="device.ssm.thresholds" value="3.0 3.0 2.0"/>
<param key="device.ssm.range" value="50.0" />
<param key="device.ssm.extratime" value="5.0" />
<param key="device.ssm.file" value="ssm_v0.xml" />
<param key="device.ssm.trajectories" value="false" />
<param key="device.ssm.geo" value="false" />
</vType>

<flow id="Type1" type="pass" begin="0" end="30" vehsPerHour="1500" departLane="free" departSpeed="max">
<route edges="r1 r2"/>
</flow >
</routes>

I don’t know whether the code is right. Thank you very much!


Back to the top