[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] "Error: The vehicle type 'type1' for vehicle 'veh0' is not known."
|
Hi Pavan,
there are two problems with your route file:
- The first definition of your vType "type1" encloses a vehicle
definition which references it. However it cannot find type1 as
the closing tag of vtype has not been reached yet. Please define
vTypes without enclosed vehicles, like you have done afterwards.
Also enclose route elements in vehicle elements or define them
on the same level as vtypes and give them IDs.
- Do use unique IDs (strings) for vTypes. Do not define "type1"
a second time.
Maybe you have a look at the relevant
documentation page.
Regards
Mirko
Am 24.04.2020 um 16:14 schrieb Pavan
Yedavalli:
Hi,
I'm a new user to SUMO, and I was wondering about the
following (very basic) error:
"Error: The vehicle type 'type1' for vehicle 'veh0' is not
known." from my rou.xml file. I generated that using csv2xml
in tools/, just FYI.
Here is a snippet of the first few vehicles in rou.xml
file:
```
<routes>
<vType accel="1.7804136126769894"
decel="3.7319337562137807" id="type1" length="5.0"
maxSpeed="90.0" minGap="2.669391744332565">
<vehicle depart="35570.49681280952" id="veh0"
route="route0" type="type1"/>
<route edges="544181 383216 132131 542737 542660
542696 542743 542729 542733 542675 166354 156690 "/>
</vType>
<vType accel="5.540229367023352"
decel="8.508616732823317" id="type1" length="5.0"
maxSpeed="90.0" minGap="1.7544886405804303"/>
<vehicle depart="28728.02537423077" id="veh1"
route="route1" type="type1">
<route edges="154680 159143 165544 "/>
</vehicle>
<vType accel="6.370903650236724"
decel="8.866453309975734" id="type1" length="5.0"
maxSpeed="90.0" minGap="3.340891225830463"/>
<vehicle depart="28983.794438073826" id="veh2"
route="route2" type="type1">
<route edges="167450 123294 542659 165542 167847
"/>
</vehicle>
```
I'm not sure what I'm doing incorrectly, but it does not
like "type1" for the vType id or for <vehicle> type, it
seems - it looks like it's the latter given the error message.
Any help would be appreciated. Thank you.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user