Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decay ball search heatmap based on viewing direction #1676

Open
oleflb opened this issue Mar 9, 2025 · 2 comments
Open

Decay ball search heatmap based on viewing direction #1676

oleflb opened this issue Mar 9, 2025 · 2 comments
Assignees

Comments

@oleflb
Copy link
Contributor

oleflb commented Mar 9, 2025

Currently, the ball search heatmap is very basic, since it decays all cells independent of each other and the state of the Nao. An improvement would be to cooldown cells in the viewing cone of the Nao up to a certain distance faster than others. This would also fix our Naos from running into one corner during corner kick and not checking the other one (related to #1288)

@knoellle
Copy link
Contributor

knoellle commented Mar 11, 2025

I'm afraid just decaying the values where we don't see a ball won't help in the corner kick case.
The current search suggestor simply overwrites the heatmap values in both corners with a static 1.0 every cycle during the corner kick.
The correct way would be to only set these values when entering the corner kick state.

I'm still convinced the ballsearch heatmap is barely functional in its current state, see #1668 for more ideas.

@rmburg
Copy link
Contributor

rmburg commented Mar 12, 2025

Idea: reproject field segments onto the ground and decay the heatmap accordingly:
We can assume that the ball is not in a location determined to have field color.

Edit:
Better yet, project the heatmap into the image, this makes everything less complicated since segments are now always contiguous and non-overlapping. I have partially implemented this, but am unsure if this is really what we want. More discussion is warranted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants