Using vTypeDistribution and emissionClass [message #1836779] |
Wed, 13 January 2021 18:43 |
Alejandro Rodríguez-Sánchez Messages: 2 Registered: January 2021 |
Junior Member |
|
|
Hello everyone,
I'm a new user of SUMO and I've found myself in a tricky situation. I am doing some simulations with vehicles defined with vTypeDistribution, such as this:
[...]
netconvert --osm-files ${map} --output-file ${network} --osm.elevation --geometry.remove --roundabouts.guess --ramps.guess --junctions.join --tls.guess-signals --tls.discard-simple --tls.join
# Set a vehicle type distribution to include several vehicle types and save it in a file
echo "<additional>
<vTypeDistribution id='typedist1'>
<vType id='type1' accel='0.8' length='5' maxSpeed='18' probability='0.9' vClass='passenger'/>
<vType id='type2' accel='1.8' length='15' maxSpeed='15' probability='0.1' vClass='bus'/>
</vTypeDistribution>
</additional>" > $add_file
# 4. Create trips (trip=begin/end points) with additional file where were defined the vehicle types to represent.
python3 $SUMO_HOME/tools/randomTrips.py -n ${network} -e ${end_time} --trip-attributes='type="typedist1"' --additional-file ${add_file} --edge-permission passenger -o ${trips}
[...]
and this works fine. However, if I define an "emissionClass" for each vehicle type in the vTypeDistribution defined above, it stops working. It seems that defining an emission class as in the example below, leads to unrecognized vTypes: Warning: The vehicle type 'typedist1' for vehicle '992' is not known.
echo "<additional>
<vTypeDistribution id='typedist1'>
<vType id='type1' emissionClass='PC_G_EU4' accel='0.8' length='5' maxSpeed='18' probability='0.9' vClass='passenger'/>
<vType id='type2' emissionClass='Bus' accel='1.8' length='15' maxSpeed='15' probability='0.1' vClass='bus'/>
</vTypeDistribution>
</additional>" > $add_file
Am I doing something wrong?
Best regards,
Alejandro
|
|
|
Powered by
FUDForum. Page generated in 0.03936 seconds