Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Obtaining the simulation image as a matrix through Traci

Graphics can only be obtained when running with the gui. However, you can fully automate this with code by adding the sumo options -S -Q
which make the gui simulation start and quite by itself.

Am Do., 17. März 2022 um 18:09 Uhr schrieb Paul Gazel-Anthoine <paul.gazel-anthoine@xxxxxxxxxxxxxxxxxxx>:
Hi,
Thank you for your answer, 
however the solution you propose forces me to use sumo-gui and doesn't allow me to replay several time the simulation by code.

Are you aware of another way to solve my issue ?

Thank you in advance.

Cordially,
Paul.


On Thu, Mar 17, 2022 at 9:00 AM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

Am Do., 17. März 2022 um 00:29 Uhr schrieb Paul Gazel-Anthoine <paul.gazel-anthoine@xxxxxxxxxxxxxxxxxxx>:
Hi,

I'm using SUMO in a Reinforcement Learning project and I'm looking for a way to provide the image of the simulation to my agent.

Is there a way to obtain the simulation image as a matrix ? (Through Traci).
Something like obtaining the value of the pixel in the simulation through x, y coordinates.

Thank you in advance.

Cordially,
Paul.
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
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