I recommend using parkingAreas for this. You can park trucks there and
query their number and you will get a neat visualization for free. Also,
you can add arbitrary information to all simulation objects by using the
functions setParameter and getParameter: traci.edge.setParameter("myEdge",
"myKey", "myValue")
For edges and lanes such custom parameter data can also be embedded in the
.net.xml file: https://sumo.dlr.de/wiki/Simulation/GenericParametersregards, Jakob Am Di., 20. Aug. 2019 um 15:53 Uhr schrieb Paolo Bolzoni < [email protected]>: > Dear list, > > What is the best way to add arbitrary information to the network? > > In particular I need to put truck depots in the map so that traci can > know where those depots are and how many trucks are in there. > > Yours faithfully, > Paolo > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
