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 |
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 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 |
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:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
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:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Yes you are right. My formula is density per lane. Am 15.01.2021 um 17:11 schrieb
Theophile Cabannes:
_______________________________________________ sumo-user mailing list [hidden email] To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user |
Free forum by Nabble | Edit this page |