Skip to content

Ball search behavior - #2723

Open
BenSampaolo wants to merge 7 commits into
HULKs:mainfrom
BenSampaolo:ball-search-behavior
Open

Ball search behavior#2723
BenSampaolo wants to merge 7 commits into
HULKs:mainfrom
BenSampaolo:ball-search-behavior

Conversation

@BenSampaolo

@BenSampaolo BenSampaolo commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Why? What?

Issue #2389

This PR adds a smarter searching behavior which uses a new heat map. While the old heat map was a probability distribution of where the ball could be the new one is a priority map which area to check when searching for the ball.
This PR helps to better search the field and make the robot actually move around when looking for the ball.

ToDo / Known Issues

This PR needs the team messages to communicate and search more efficiently and therefore will work better when #2692 is merged.

How to Test

Deploy on the robot and enter playing mode. Make sure the robot doesn't see a ball and has loca. The robot should circle around the field and look for the ball.

@github-project-automation github-project-automation Bot moved this to In Progress in Development Jul 2, 2026
@BenSampaolo
BenSampaolo force-pushed the ball-search-behavior branch 5 times, most recently from 335ff66 to 0bffcaf Compare July 2, 2026 11:20
@BenSampaolo
BenSampaolo marked this pull request as ready for review July 2, 2026 11:24
@BenSampaolo
BenSampaolo force-pushed the ball-search-behavior branch from 0bffcaf to 2e1b2fa Compare July 2, 2026 11:52
@BenSampaolo
BenSampaolo marked this pull request as draft July 2, 2026 13:43
@BenSampaolo
BenSampaolo force-pushed the ball-search-behavior branch 3 times, most recently from bba6fe9 to 7785ecc Compare July 3, 2026 00:27
@vivi-enne vivi-enne self-assigned this Jul 3, 2026
@BenSampaolo

BenSampaolo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Cells with obstacles should be able to be chosen by the search suggester

@BenSampaolo

BenSampaolo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Parameters are wired badly (Use own parameters instead of behavior parameters in search suggester node)

@BenSampaolo

BenSampaolo commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

Faster head motions
Probably more tuning, especially faster cell regeneration with higher hysteresis and bigger FOV

@BenSampaolo
BenSampaolo force-pushed the ball-search-behavior branch from 7785ecc to eb60416 Compare July 3, 2026 07:35
@BenSampaolo
BenSampaolo marked this pull request as ready for review July 3, 2026 09:24
@BenSampaolo BenSampaolo assigned rmburg and unassigned vivi-enne Jul 4, 2026
@BenSampaolo BenSampaolo added is:PostgameNotes Postgame notes and to-do's RoboCup 2026 ⚽ labels Jul 4, 2026
heatmap_decay_range: {
start: 0.0,
end: 3.0
search_suggestor: {

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.

un-nest this (remove the wrapping search_suggestor: {...})

Comment on lines -36 to +34
let parameters = node.bind_parameter_as::<SearchSuggestorParameters>("search_suggestor")?;
let node_parameters = node.bind_parameter_as::<Parameters>("search_suggestor")?;

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.

undo this change to un-nest the parameters in search_suggestor.json5

.get_latest()
.map(|head_joints| head_joints.yaw)
.unwrap_or_default();
if let Some(message) = blackboard.try_sending_state_message(head_yaw) {

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.

can you put head_yaw into the blackboard like the other subscriptions of the behavior node instead of passing it into this function?

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

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants