Skip to content

Using positioning only if ball seen - #1085

Open
cleWu03 wants to merge 1 commit into
mainfrom
fix/use_positioning_only_if_ball_was_seen
Open

cleWu03 wants to merge 1 commit into
mainfrom
fix/use_positioning_only_if_ball_was_seen

Conversation

@cleWu03

@cleWu03 cleWu03 commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Quick solve for #1084. It produces a code duplication of the suboptimal code from #1057. I will comment there, that we remember to duplicate our solution there too.

Checklist

  • Run pixi run build
  • Write documentation
  • Test on your machine
  • Test on the robot
  • Create issues for future work
  • Triage this PR and label it

GOALIE --> $CountActiveRobotsWithoutGoalie
ZERO --> #SearchBall
ELSE --> #RolePositionWithPause
ELSE --> #SearchBall

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think only the striker should search the ball all others should go to the role position like we do during normal play. But I would change it so all robots do the wait + turn for a few seconds, but then only the config striker goes to search the ball and all others do to the role positions. If we add this to the search ball tree we can reuse it here with a simple ball seen decision.

@cleWu03 cleWu03 Sep 24, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since a change after the IFA game, where the config striker was out of field and no one else was searching the ball, this is the same behavior as during normal play. #1057 describes this problem further. We should find a solution where the decision who searches is not only based on the config role, to make sure exactly one robot does the search behavior in any cases. I like the idea of a U-Turn for all at the beginning, but would handle that in the fix for the other Issue, since it is not directly related to the problem of using the positioning capsule in a wrong moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🆕 New

Development

Successfully merging this pull request may close these issues.

Using positioning without ball seen

2 participants