Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » Using vTypeDistribution and emissionClass(Issues while attemting to use emissionClass inside vTypeDistribution vTypes)
Using vTypeDistribution and emissionClass [message #1836779] Wed, 13 January 2021 18:43
Alejandro Rodríguez-Sánchez is currently offline Alejandro Rodríguez-SánchezFriend
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
Previous Topic:Sumo Netconvert
Next Topic:How to set public transport network to a specific vType set in vehicle distribution
Goto Forum:
  


Current Time: Thu Apr 25 13:09:22 GMT 2024

Powered by FUDForum. Page generated in 0.04893 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top