Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Issues using emissionClass and vTypeDistribution

That was easy, thanks a lot Jakob!

Sorry to bother you again but I have another and last question. How could I associate my bus vType (called 'type2' in vTypeDistribution) with public transport routes? I've tried the following, assuming that --types refers to the vType that I want to use for public transport netwotk

# 5.2 Create public transport schedules
python3 $SUMO_HOME/tools/ptlines2flows.py -n ${network} -s ${ptstops_out} -l ${ptlines_out} --types='type2' -o ${ptroutes} -p 600 --use-osm-routes

However, the public transport routes files is empty:

<?xml version="1.0" encoding="UTF-8"?>
<!-- generated on 2021-01-14 10:33:47.047398 by $Id$
  options: -n sumonetwork.net.xml -s ptstops.xml -l ptlines.xml <doubleminus>types=type2 -o sumoptroutes.rou.xml -p 600 <doubleminus>use-osm-routes
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd">
    <vType id="bus" vClass="bus"/>
    <vType id="tram" vClass="tram"/>
    <vType id="train" vClass="rail"/>
    <vType id="subway" vClass="rail_urban"/>
    <vType id="light_rail" vClass="rail_urban"/>
    <vType id="monorail" vClass="rail"/>
    <vType id="trolleybus" vClass="bus"/>
    <vType id="aerialway" vClass="bus"/>
    <vType id="ferry" vClass="ship"/>
</routes>

Best regards,
Alejandro

El jue, 14 ene 2021 a las 8:50, Jakob Erdmann (<namdre.sumo@xxxxxxxxx>) escribió:
You are using incomplete emission class specifiers.
Prefix the emission model instead:
emissionClass="HBEFA3/PC_G_EU5"
emissionClass="HBEFA3/Bus"

Am Mi., 13. Jan. 2021 um 19:58 Uhr schrieb Alejandro Rodríguez Sánchez <alrodr25@xxxxxx>:
Hello everyone,
I'm a new user in SUMO and as I have been doing simulations I've found an issue I don't know how to solve.

I want to define an vTypeDistribution with, for now, 2 vehicle classes and each one with different emission classes. To do this, I create an additional file just after run netconvert and this additional file is use to create the routes and the trips files. This is how I create the additional file:

echo "<additional>
    <vTypeDistribution id='typedist1'>
        <vType id='type1' emissionClass='PC_G_EU5' 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

The problem is that if I remove the emissionClass parameter in the lines above, the simulation runs properly, but including the emissionClass parameters in each of the 2 vTypes, I got this warning for every vehicle in my simulation
Warning: The vehicle type 'typedist1' for vehicle '998' is not known.

What am I doing badly? I attach the script in which I do all the steps to run the sumo simulation.
Best regards,
Alejandro
--
Alejandro Rodríguez Sánchez
PhD student
CIEMAT // Universidad Complutense de Madrid
28040 Madrid
email: alrodr25@xxxxxx
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


--
Alejandro Rodríguez Sánchez
Facultad de Físicas
Universidad Complutense de Madrid
28040 Madrid
email: alrodr25@xxxxxx

Attachment: autoSUMO.sh
Description: application/shellscript

Attachment: autosumo_parameters.sh
Description: application/shellscript


Back to the top