Hello Jakob,

Thank you for pointing me in the right direction.  I am getting closer.  I have 
managed to get simTime(secs):## to display at an XY coordinate.  However, by 
enabling types to display on the gui, I have turned on ALL POI's, which is not 
desirable.

Is there a way to turn just the one poi programmatically, as well as change the 
color of the font?  I also enabled maintain size on zoom which seems reasonable.

I also tried the parameter text first but was unable to display it, my sense is 
that potentially it may have been the same color as the background, I am 
guessing.  Here is my code, I wanted to know if you had any suggestions on 
either the type or the parameter of the poi approach.

In summary:

TYPE:  The all display rather than just the poi's I want, and color is default 
color for all POI types.

PARAMETER:  Cannot get it to display although it is in the model data.


Code:

    #add(self, poiID, x, y, color, poiType='', layer=0, imgFile='', width=1, 
height=1, angle=0)
    #add(string, double, double, (byte, byte, byte, byte), string, integer, 
string, double, double, double)

    traci.poi.add("simTime", 37000, 38500, colorBlack)
    #setParameter(self, objID, param, value)
    #setParameter(string, string, string) -> None
    #traci.poi.setParameter(self, objID, param, value)("simTime", "simTimeKpi", 
"SimTime(secs):"+str(cstsecs))

    while cstsecs < StartSimulationEndSeconds:
        cstsecs = 1.0 * step
        #traci.poi.setParameter("simTime", "simTimeKpi", "SimTime(secs):" + 
str(step))
        #setType(self, poiID, poiType)
        #setType(string, string) -> None
        traci.poi.setType("simTime", "SimTime(secs):" + str(step))



________________________________
From: [email protected] <[email protected]> on behalf 
of Jakob Erdmann <[email protected]>
Sent: Thursday, December 17, 2020 2:38 AM
To: Sumo project User discussions <[email protected]>
Subject: Re: [sumo-user] Labels and Kpis OR Include the whole Display of Sumo 
Run

see 
https://sumo.dlr.de/docs/sumo-gui.html#display_arbitrary_text_in_the_simulation_view

regards,
Jakob

Am Do., 17. Dez. 2020 um 03:08 Uhr schrieb Paul Fierro 
<[email protected]<mailto:[email protected]>>:
Hi DLR Sumo Team,

I am building sumo models that talk to my API in the cloud to manage traffic 
flow and solve a logistic problem for a fire evacuation.  I have some YouTube 
videos, but some feedback came today asking for my video which came from saved 
images to include the time, and again discovered that the way to show KPIs and 
Time of simulation model is not simple to display on the screen.  I am looking 
to identify how I can show KPI's for my multi objective optimization as well as 
the simply simulation time so people have a sense of the scale.

How do you typically handle this sort of need to display information to the 
user?

Thanks Paul Fierro


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

Reply via email to