[sumo-user] Get edge density within TraCI

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[sumo-user] Get edge density within TraCI

Theo
Hey,

I wonder if it is possible to get edge density inside TraCI. I have not
found anything in the documentation.
If it is not possible to get edge density inside TraCI, what would be a good
proxy to get edge density?

My motivation is to derived rerouting strategies when some edge reached a
given density.

Thank you a lot!
Theo



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] Get edge density within TraCI

Mirko Barthauer

Hi Theo,

you can query the number of vehicles using getLastStepVehicleNumber https://sumo.dlr.de/pydoc/traci._edge.html#EdgeDomain-getLastStepVehicleNumber . Geometrical info about the edge can be queried using sumolib.net.edge (getLanes(), getLength()). Then you can compute the density #veh/(lane count * edge length) [veh/lane].

Best Regards
Mirko

Am 07.01.2021 um 11:33 schrieb Theo:
Hey,

I wonder if it is possible to get edge density inside TraCI. I have not
found anything in the documentation.
If it is not possible to get edge density inside TraCI, what would be a good
proxy to get edge density?

My motivation is to derived rerouting strategies when some edge reached a
given density.

Thank you a lot!
Theo



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] Get edge density within TraCI

Theo
Thank you a lot Mirko. This is very helpful.

Best
Theo

On Thu, Jan 7, 2021 at 11:42 AM Mirko Barthauer <[hidden email]> wrote:

Hi Theo,

you can query the number of vehicles using getLastStepVehicleNumber https://sumo.dlr.de/pydoc/traci._edge.html#EdgeDomain-getLastStepVehicleNumber . Geometrical info about the edge can be queried using sumolib.net.edge (getLanes(), getLength()). Then you can compute the density #veh/(lane count * edge length) [veh/lane].

Best Regards
Mirko

Am 07.01.2021 um 11:33 schrieb Theo:
Hey,

I wonder if it is possible to get edge density inside TraCI. I have not
found anything in the documentation.
If it is not possible to get edge density inside TraCI, what would be a good
proxy to get edge density?

My motivation is to derived rerouting strategies when some edge reached a
given density.

Thank you a lot!
Theo



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] Get edge density within TraCI

Theo
In reply to this post by Mirko Barthauer
Hi Mirko,

To have a density which is analog to the density given in the edge-based traffic measures, should I use #veh/edge length or #veh/(lane count * edge length)?
It seems to me that #veh/edge length would make more sense.

Best,
Theo

On Thu, Jan 7, 2021 at 11:42 AM Mirko Barthauer <[hidden email]> wrote:

Hi Theo,

you can query the number of vehicles using getLastStepVehicleNumber https://sumo.dlr.de/pydoc/traci._edge.html#EdgeDomain-getLastStepVehicleNumber . Geometrical info about the edge can be queried using sumolib.net.edge (getLanes(), getLength()). Then you can compute the density #veh/(lane count * edge length) [veh/lane].

Best Regards
Mirko

Am 07.01.2021 um 11:33 schrieb Theo:
Hey,

I wonder if it is possible to get edge density inside TraCI. I have not
found anything in the documentation.
If it is not possible to get edge density inside TraCI, what would be a good
proxy to get edge density?

My motivation is to derived rerouting strategies when some edge reached a
given density.

Thank you a lot!
Theo



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Reply | Threaded
Open this post in threaded view
|

Re: [sumo-user] Get edge density within TraCI

Mirko Barthauer

Yes you are right. My formula is density per lane.

Am 15.01.2021 um 17:11 schrieb Theophile Cabannes:
Hi Mirko,

To have a density which is analog to the density given in the edge-based traffic measures, should I use #veh/edge length or #veh/(lane count * edge length)?
It seems to me that #veh/edge length would make more sense.

Best,
Theo

On Thu, Jan 7, 2021 at 11:42 AM Mirko Barthauer <[hidden email]> wrote:

Hi Theo,

you can query the number of vehicles using getLastStepVehicleNumber https://sumo.dlr.de/pydoc/traci._edge.html#EdgeDomain-getLastStepVehicleNumber . Geometrical info about the edge can be queried using sumolib.net.edge (getLanes(), getLength()). Then you can compute the density #veh/(lane count * edge length) [veh/lane].

Best Regards
Mirko

Am 07.01.2021 um 11:33 schrieb Theo:
Hey,

I wonder if it is possible to get edge density inside TraCI. I have not
found anything in the documentation.
If it is not possible to get edge density inside TraCI, what would be a good
proxy to get edge density?

My motivation is to derived rerouting strategies when some edge reached a
given density.

Thank you a lot!
Theo



--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
[hidden email]
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user