Skip to content

Commit 95c3486

Browse files
committed
Also remove robots independent from the ball during stop
1 parent 7ce5fba commit 95c3486

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/simctl/handler_robot_count.go

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ func (r *RobotCountHandler) handleRobotCount() {
3939
}
4040

4141
if *r.c.lastRefereeMsg.Command != referee.Referee_HALT &&
42+
*r.c.lastRefereeMsg.Command != referee.Referee_STOP &&
4243
len(r.c.lastTrackedFrame.TrackedFrame.Balls) > 0 &&
4344
math.Abs(float64(*r.c.lastTrackedFrame.TrackedFrame.Balls[0].Pos.X)) < 2 {
4445
// Rule: The ball must be at least 2 meters away from the halfway line.

0 commit comments

Comments
 (0)