Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Save state does not have the x, y coordinates of a vehicle

Thank you for your reply. I already used - -fcd-output which gives me the exact x and y coordinates. But, my goal is to get the saved state(xml file), modify it, and again use the - -load state command to restart the simulation. Can I restart the simulation like load state if I use - - fcd-output ?

Regards,
Proyash Podder

On Jun 9, 2020, at 4:09 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:

The state encodes vehicle positions via lane coordinates (lane id and offset along the lane). While you could compute x and y from this (i.e. using traci function traci.simulation.convert2d) it might be easier to use --fcd-output instead: https://sumo.dlr.de/docs/Simulation/Output/FCDOutput.html

Am Di., 9. Juni 2020 um 17:54 Uhr schrieb Proyash Podder <ppodd002@xxxxxxx>:
Hello everyone!

I am using SUMO’s save state and load state functionality to take snapshot of my scenario for a particular time (e.g., 1st second) using “sumo -c myfile.sumocfg --save-state.times 1 --save-state.files trace_1.xml” command.

Now, the trace_1.xml file does not contain the exact position ( e.g., x and y coordinate of a vehicle/node). Is there any way, I can get the exact x and y coordinate of all the nodes?

Regards,
Proyash Podder
_______________________________________________
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