Commit 9d5d4ef3 authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier

Added TODO comment for gradient evaluation in "OSMBehaviorController".

parent 41985de4
Pipeline #119753 passed with stages
in 131 minutes and 6 seconds
......@@ -137,6 +137,7 @@ public class OSMBehaviorController {
boolean closestPedIsCooperative = closestPedestrian.getSalientBehavior() == SalientBehavior.COOPERATIVE;
boolean targetOrientationDiffers = false;
// TODO: Use "pedestrian.getTargetGradient()" instead of "calculateAngleBetweenTargets()".
double angleInRadian = calculateAngleBetweenTargets(pedestrian, closestPedestrian, topography);
if (angleInRadian == -1 || Math.toDegrees(angleInRadian) > pedestrian.getAttributes().getTargetOrientationAngleThreshold()) {
......
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