Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Labels and Kpis OR Include the whole Display of Sumo Run
  • From: Paul Fierro <paulfierro@xxxxxxxxxx>
  • Date: Thu, 17 Dec 2020 19:15:00 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=kubbla.com; dmarc=pass action=none header.from=kubbla.com; dkim=pass header.d=kubbla.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/gX1gKfFpJmdZLiUjbTaojcAAGREP5N1P14zbOuT8eE=; b=PTuatg/KAJJDYwz78d46M+1CaZCZBdsXBD1NKr36MRFLv8DsCChdfg3pWu/mntDnlr6P1J+EjDUKQszyYw+UAf3WEpDIQ0RtdwK6rMY05HCzx8Go1J1JbMTkousI7Wy06dsWA/9e+UdzO65XScXRSVvfffvzWM8pPX+n3B1t8vOujXjLen9QDaGvWYfsCQgGDoZjajL2hoenNU4UmXGqIu9iUVYOoEx7+MHw8IYMLGGeTgDPrG1dyfCiQhLL2tYwxwiv+H3KsxzDByUr5Rs10WvRKtsKAjS7rTwsC2qjZkm+gczXj9+dbN2DPeQ4WvcKRgj2uI2eIHnw4nCGAX7Pig==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LK1o2WtPBZebn2jxbb/M1k3R65RDmf69awQUycBWaa+bUYelHpCFhEAodRyidZUrP1GY5/q8fIhK2iI7RzTAWLoA1LkHALWhHGeR3m+YgNDjJFOXl+BhMKDC8NhpX1qhjddi1cyPvsToHMwWl5hkaJauTWaurnP0YF+vdSXC2elewgf5fru/nWUklJf9Gf+qaD6NuzY9lENcdkjEB/y77Yhf5T8vSet7zkchLQ0h85wg6JHq1dvIjOEIXLK6re0L+pK8WNJMgGNTHO6Z77z6vIHQZKSTCSt+3jRTLrxs+UI48+v1eV24xUlsrNgpHDy50Ji14ve+dhPP5u3kyOf7iA==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHW1Ee/kIMiJgayq0e90EKQu1L7Kan7p1Q2
  • Thread-topic: [sumo-user] Labels and Kpis OR Include the whole Display of Sumo Run

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: sumo-user-bounces@xxxxxxxxxxx <sumo-user-bounces@xxxxxxxxxxx> on behalf of Jakob Erdmann <namdre.sumo@xxxxxxxxx>
Sent: Thursday, December 17, 2020 2:38 AM
To: Sumo project User discussions <sumo-user@xxxxxxxxxxx>
Subject: Re: [sumo-user] Labels and Kpis OR Include the whole Display of Sumo Run
 

Am Do., 17. Dez. 2020 um 03:08 Uhr schrieb Paul Fierro <paulfierro@xxxxxxxxxx>:
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
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top