Skip to content

Conversation

@paudar
Copy link
Contributor

@paudar paudar commented Jul 16, 2025

Why? What?

Implementing a decay of heatmap tiles if a robot is looking in its direction. This decay is scaled by the distance from the robot to the center of the tile (changeable with decay_distance_factor).
In addition a kind of hysteresis is added. A robot decides to investigate a tile with the maximal heat and will do so until the heat of this tile has decreased to tile_target_heat_threshold_factor percent.

Fixes #1288

ToDo / Known Issues

Parameter tuning based on a real game.

Ideas for Next Iterations (Not This PR)

This approach don't take in account, if the view of the robot is blocked by an obstacle.
A better approach would be to project the tiles in the camera view and check for the color of the segment or to use something like a particle filter.

How to Test

To test the decay of the heatmap you can run the ball_search-scenario. Use the map-overlay for the ball_search_heatmap and observe the robot looking in both corners.

@pejotejo pejotejo force-pushed the heatmap-view-decay branch from 70f9ea5 to c359a81 Compare July 24, 2025 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Request for Review

Development

Successfully merging this pull request may close these issues.

post-game task: improve ball search for corner kicks

2 participants