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 <
[email protected]>:

> 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 <[email protected]>
> wrote:
>
>> you could use traci.gui.screenshot:
>> https://sumo.dlr.de/pydoc/traci._gui.html#GuiDomain-screenshot
>>
>> Am Do., 17. März 2022 um 00:29 Uhr schrieb Paul Gazel-Anthoine <
>> [email protected]>:
>>
>>> 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
>>> [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
>>
> _______________________________________________
> sumo-user mailing list
> [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