Commit 06209483 authored by NicolaiO's avatar NicolaiO 🐼 Committed by TIGERs GitLab
Browse files

Resolve "Report correct location for double touch"

Closes #1627

See merge request main/Sumatra!1368

sumatra-commit: 00739635773fffc651e09711baa3e3b1f57238ba
parent 9082cd1b
Pipeline #8895 passed with stage
in 5 minutes and 28 seconds
/*
* Copyright (c) 2009 - 2018, DHBW Mannheim - TIGERs Mannheim
* Copyright (c) 2009 - 2021, DHBW Mannheim - TIGERs Mannheim
*/
package edu.tigers.autoreferee.engine.detector;
import java.awt.Color;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Optional;
import java.util.Set;
import edu.tigers.autoreferee.EAutoRefShapesLayer;
import edu.tigers.autoreferee.generic.BotPosition;
import edu.tigers.sumatra.drawable.DrawableCircle;
......@@ -23,6 +17,12 @@ import edu.tigers.sumatra.referee.gameevent.AttackerDoubleTouchedBall;
import edu.tigers.sumatra.referee.gameevent.IGameEvent;
import edu.tigers.sumatra.wp.data.ITrackedBot;
import java.awt.Color;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Optional;
import java.util.Set;
/**
* <p>
......@@ -102,7 +102,7 @@ public class DoubleTouchDetector extends AGameEventDetector
if (frame.getBotsTouchingBall().stream().anyMatch(b -> b.getBotID().equals(kickerID)))
{
return Optional.of(new AttackerDoubleTouchedBall(kickerID, getBall().getPos()));
return Optional.of(new AttackerDoubleTouchedBall(kickerID, initialBallPos));
}
// situation is not decided yet
......
Supports Markdown
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