Hi, there,
Is anyone can help me to correct the error?
I would like to demo the probability attribute for a vehicle id="1" by
using sumo-winbin-0.22.0 in the direction of the url page:
http://sumo.dlr.de/daily/userdoc/Definition_of_Vehicles,_Vehicle_Types,_and_Routes.html#Route_and_vehicle_type_distributions

In my rou.xml file, I add the following context and get an error message:

<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd";>

35 <routeDistribution id="routedist1">
36        <route id="route0" color="1,1,0" edges="-a243#4 -a243#3 a243#3
a243#4 a346#0 a346#1" probability="0.9"/>
37        <route id="route1" color="1,2,0" edges="-a243#4 -a243#3 a243#3
a854_0 a219#0_0 a346#1_0 a346#2_0"

probability="0.1"/>
38 </routeDistribution>

<vehicle id="1" route="routedist1" depart="1.00" color="1,1,0">


######begin of error message############################

Loading configuration... done.
Loading net-file from 'F:\103\10\uni.net.xml'...  done (368ms).
Loading additional-files from 'F:\103\10\uni.poly.xml'...
Warning: Environment variable SUMO_HOME is not set, schema resolution will
use slow website lookups.
 done (3407ms).
Loading done.
Warning: Environment variable SUMO_HOME is not set, schema resolution will
use slow website lookups.
Error: attribute 'id' is not declared for element 'route'
 In file 'C:\103\10\uni.rou.xml'
 At line/column 37.

Quitting (on error).

######end of error message################################

in my sumo.cfg file,

<?xml version="1.0" encoding="iso-8859-1"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:noNamespaceSchemaLocation="http://sumo.sf.net/xsd/sumoConfiguration.xsd
">

    <input>

        <route-files value="uni.rou.xml"/>
        <net-file value="uni.net.xml"/>
        <additional-files value="uni.poly.xml"/>
    </input>

    <report>
        <no-duration-log value="true"/>
        <no-step-log value="true"/>
    </report>


</configuration>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to