Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] od2trips vehicle restrictions

In our own tests, filtering preserves the distinction between <source> and <sink> edges.
Can you provide a minimal input example where filtering causes the loss of information?

Am Mo., 14. Apr. 2025 um 13:07 Uhr schrieb Federico De Falco <defalco@xxxxxxxxxxxxxxxxxxxx>:
Hi,

your solution worked, thank you!
Now I am facing another problem related to this one. I draw TAZs in netedit's TAZ mode, and I chose some edges that are sources and other taht are sinks, that are saved into a .add.xml file. Anyway, when I use od2trips and pass the filtered taz file as a parameter it contains all the edges, without any information about sources/sinks, and thus tries to generate trips that start from wrong edges.
Is there a way to generate trips from OD taking into account both sources/sinks and the vehicles allowed on each edge?

Thank you

 

 


FEDERICO 

DE FALCO 


Researcher
 

 

MISTER Smart Innovation
laboratoriomister.it 

Tecnopolo Bologna CNR 

tecnopolo.bo.cnr.it 

 

 

PHONE 

 

+39 051 639 9984

EMAIL 

defalco@xxxxxxxxxxxxxxxxxxxx 

ADDRESS 

Tecnopolo Bologna CNR 

 

Via Piero Gobetti, 101 

 

40129 - Bologna, Italy 

PRIVACY 

policy


 

LET’S CONNECT 

 

 MISTER

 

Tecnopolo


 

 








 


Da: sumo-user <sumo-user-bounces@xxxxxxxxxxx> per conto di Jakob Erdmann via sumo-user <sumo-user@xxxxxxxxxxx>
Inviato: mercoledì 2 aprile 2025 17:23
A: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Cc: Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Oggetto: Re: [sumo-user] od2trips vehicle restrictions
 
od2trips doesn't read a networks and thus doesn't take into account permissions.
You can use  https://sumo.dlr.de/docs/Tools/District.html#filterdistrictspy to obtain a suitable taz for each vClass.

Am Mi., 2. Apr. 2025 um 16:23 Uhr schrieb Federico De Falco via sumo-user <sumo-user@xxxxxxxxxxx>:
Hi everybody,

I am using od2trips to generate trips from a O/D and a TAZ file. My problem is that a TAZ may contain some edges that does not allow all types of vehicle. 
For example, in my case a TAZ contains some source/sink edges (the source/sinks are described in .add.xml file ... is this taken into account by od2trips?) that does not allow passenger vehicles. This is the command I am using:

od2trips --taz-files test.taz.xml -z tazCount.xml -o odOutput.xml

where the test.taz.xml looks like this:

<taz id="taz_0" color="blue" edges="-23393174#0 -454892515#2 23393174#0 454892515#2"/>

and the tazCount.xml like this:

<tazRelation from="taz_0" to="taz_2" count="41"/>

then I want to use duarouter (I am using the command duarouter -n test.net.xml --route-files odOutput.xml -o duarouter.rou.xml ) but I get some errors like Error: Vehicle '2620' is not allowed to depart on edge 'E243'. . Edge E243 in fact allows only trucks.

How can I solve this problem?

Thank you


 

 


FEDERICO 

DE FALCO 


Researcher
 

 

MISTER Smart Innovation
laboratoriomister.it 

Tecnopolo Bologna CNR 

tecnopolo.bo.cnr.it 

 

 

PHONE 

 

+39 051 639 9984

EMAIL 

defalco@xxxxxxxxxxxxxxxxxxxx 

ADDRESS 

Tecnopolo Bologna CNR 

 

Via Piero Gobetti, 101 

 

40129 - Bologna, Italy 

PRIVACY 

policy


 

LET’S CONNECT 

 

 MISTER

 

Tecnopolo


 

 








 

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top