Closed kkusic closed 2 years ago
Also, when the departPos="random_free" departSpeed="max" speed="33.33" attributes were removed and loading was successful, the calibrators were also loaded, but they become inactive and no vehicle is added to the network while the simulation continues, even though an initial flow rate is defined in each calibrator within 1-minute intervals. From that point, I am also unable to change the flow rate via traci.calibrator.setFlow(). Usually calibrator has attributes like this
Any advice?
Thanks Kresimir
additional work remains (#10284) but it's impact should be low for 1-minute intervals and you should be able to use the calibrators after loading state now.
previous fixes were for traci.load whereas simulation.loadState has another problem
It works. Thanks for the quick response and fix.
Kresimir
Hello @namdre, I am trying to use traci.simulation.loadState. After saving the simulation state in a file, for each vehicle definition, I get additional attributes departPos="random_free" departSpeed="max" speed="33.33" that make loading to fail. If I remove these attributes and keep the remaining ones, loading is successful. It seems that there is redundant information about the position and speed of the vehicle.
Vehicle definition in save_state.xml:
These unnecessary attributes have been pulled from the calibrator definition calibrator.add.xml file while saving simulation state:
Do you have any idea how to avoid saving these attributes from the calibrator definition while saving the simulation state?
Input definition:
SUMO-v1_12_0 (March 03 2022 00:14:56 UTC):
Windows 64-bit:
Thanks Kresimir