Commit b65e05f8 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

In "OSMBehaviorController.swapPedestrians()", improved bug fix to avoid...

In "OSMBehaviorController.swapPedestrians()", improved bug fix to avoid "AssertionError" in "VTrajectory".

We have to do a code review here with Bene if event-driven update scheme is used properly.
parent 1a099655
Pipeline #106387 passed with stages
in 112 minutes and 42 seconds
......@@ -254,6 +254,7 @@ public class OSMBehaviorController {
// TODO Clarify with Bene if "stepDuration" should also be set
// and if "pedestrian2.timeOfNextStep()" should be also called.
pedestrian1.setTimeOfNextStep(pedestrian1.getTimeOfNextStep() + pedestrian1.getDurationNextStep());
pedestrian2.setTimeOfNextStep(pedestrian2.getTimeOfNextStep() + pedestrian2.getDurationNextStep());
}
// TODO Remove debug method.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment