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

Commit b756b04f authored by Benedikt Zoennchen's avatar Benedikt Zoennchen

lazy implementation of the step sizes.

parent 90af637b
Pipeline #80703 failed with stages
in 26 seconds
......@@ -154,9 +154,9 @@ public class PedestrianOSM extends Pedestrian {
}
}
/*if(attributesOSM.isMinimumStepLength() && getPosition().distance(nextPosition) < minStepLength) {
if(attributesOSM.isMinimumStepLength() && getPosition().distance(nextPosition) < minStepLength) {
nextPosition = getPosition();
}*/
}
}
......
......@@ -135,8 +135,8 @@ public class PotentialEvaluationFunction implements UnivariateRealFunction,
}
if (Math.pow(newPos.x - pedPos.x, 2) + Math.pow(newPos.y - pedPos.y, 2) <= Math.pow(stepSize, 2) + 0.00001
&& Math.pow(newPos.x - pedPos.x, 2) + Math.pow(newPos.y - pedPos.y, 2) >= Math.pow(this.minStepSize, 2)
- 0.00001) {
/*&& Math.pow(newPos.x - pedPos.x, 2) + Math.pow(newPos.y - pedPos.y, 2) >= Math.pow(this.minStepSize, 2)
- 0.00001*/) {
result = pedestrian.getPotential(newPos);
}
counter++;
......
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