[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [sumo-user] TraCI quits on "Error: bad allocation"
|
Hello Jakob,
thank you so much for looking into it and fixing it so quickly!
Will the next nightly build include the fix?
I have tested your suggestion.
In my tests changing the period value worked but the change only seems to
take effect after the first rerouting with the initial value.
I started the simulation again with
<routing>
<device.rerouting.probability value="1.0"/>
<device.rerouting.period value="300"/>
</routing>
in my simulation config file.
Then I rerouted the vehicle with TraCI at insertion and immediately executed
this:
traci.vehicle.setParameter(vid, "device.rerouting.period", "10")
Here is an example of my vehroute-output (I removed some unrelated
attributes):
<routeDistribution>
<route reason="traci:rerouteTraveltime" replacedAtTime="61.00" />
<route reason="device.rerouting" replacedAtTime="360.00" />
<route reason="device.rerouting" replacedAtTime="380.00" />
<route reason="device.rerouting" replacedAtTime="390.00" />
<route reason="device.rerouting" replacedAtTime="400.00" />
<route reason="device.rerouting" replacedAtTime="410.00" />
<route reason="device.rerouting" replacedAtTime="420.00" />
</routeDistribution>
It seems that there is still something wrong because I would expect the
change in rerouting period to take effect immediately.
Thanks a lot!
Best regards
Marcel
--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/