Notice to GitKraken users: A vulnerability has been found in the SSH key generation of GitKraken versions 7.6.0 to 8.0.0 (https://www.gitkraken.com/blog/weak-ssh-key-fix). If you use GitKraken and have generated a SSH key using one of these versions, please remove it both from your local workstation and from your LRZ GitLab profile.

21.10.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit 851c2885 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

Bugfix in "Simulation.java": "cognitionLayer.prioritizeEventsForPedestrians()"...

Bugfix in "Simulation.java": "cognitionLayer.prioritizeEventsForPedestrians()" must be called after "sourceController.udpate()" and "topographyController.update()".
parent e706f956
Pipeline #79377 failed with stages
in 76 minutes and 23 seconds
......@@ -284,9 +284,6 @@ public class Simulation {
private void updateCallbacks(double simTimeInSec) {
List<Event> events = eventController.getEventsForTime(simTimeInSec);
Collection<Pedestrian> pedestrians = topography.getElements(Pedestrian.class);
cognitionLayer.prioritizeEventsForPedestrians(events, pedestrians);
// TODO Why are target controllers readded in each simulation loop?
this.targetControllers.clear();
for (Target target : this.topographyController.getTopography().getTargets()) {
......@@ -304,6 +301,9 @@ public class Simulation {
topographyController.update(simTimeInSec);
step++;
Collection<Pedestrian> pedestrians = topography.getElements(Pedestrian.class);
cognitionLayer.prioritizeEventsForPedestrians(events, pedestrians);
for (Model m : models) {
m.update(simTimeInSec);
}
......
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