Hello Jakob,
I cannot use --save-state.xx options as I do not know beforehand when I
will want to save the state. What I need is to be able to do it on
request via TraCI.
I implemented this in SUMO 0.25 (rev 19749), see attached patch for the
changes. The parts of SUMO I was dealing with were written quite
elegantly and so the changes are not all that complicated (for which I
am grateful :-)). It now recognizes TraCI command 0x03 as a request to
save the simulation state. I invoke it from python simply as
def saveState(self, filename):
self._beginMessage(0x03, 0, filename)
self._sendExact()
Can you make similar functionality part of mainstream SUMO/TraCI? It
would simplify things for me.
Thank you,
Matej.
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
sumo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-devel