Hi Jakob,
Thanks for the prompt response, it was really helpful.
I find two issues with the save/load approach, plus another issue with the documentation that I hope you can help me with:
1) referring again to the previous env1 and env2 example: when env2 loads the state saved from env1, vehicle information is a bit off. For example, when getting position information from one of the vehicles, the state prior to been saved reports a position of (101.5000452506627, 95.2), but if I verify the position after having loaded that specific state file I get a position of (101.49894165466144, 95.2) for the same vehicle - similarly happens for other quantities. Do you have any hints on the reason of this error?
2) After env2 loads the state, I try to step within the simulation of env2. However, after the simulation step, the _subscriptionMapping gets empty at field 235, since the read int of the result (after sending the cmd of CMD_SIMSTEP) is always 0. Do you know what is it causing this problem?
3 - documentation) It seems the docu page of save and load (
https://sumo.dlr.de/docs/Simulation/SaveAndLoad.html) reports two load options, but there is no def load under tools/traci/_simulation.py
Thank you,
Stefano