Ball search behavior - #2723
Open
BenSampaolo wants to merge 7 commits into
Open
Conversation
BenSampaolo
force-pushed
the
ball-search-behavior
branch
5 times, most recently
from
July 2, 2026 11:20
335ff66 to
0bffcaf
Compare
BenSampaolo
marked this pull request as ready for review
July 2, 2026 11:24
BenSampaolo
force-pushed
the
ball-search-behavior
branch
from
July 2, 2026 11:52
0bffcaf to
2e1b2fa
Compare
BenSampaolo
marked this pull request as draft
July 2, 2026 13:43
BenSampaolo
force-pushed
the
ball-search-behavior
branch
3 times, most recently
from
July 3, 2026 00:27
bba6fe9 to
7785ecc
Compare
Contributor
Author
|
|
Contributor
Author
|
|
Contributor
Author
|
|
BenSampaolo
force-pushed
the
ball-search-behavior
branch
from
July 3, 2026 07:35
7785ecc to
eb60416
Compare
BenSampaolo
marked this pull request as ready for review
July 3, 2026 09:24
rmburg
reviewed
Jul 4, 2026
| heatmap_decay_range: { | ||
| start: 0.0, | ||
| end: 3.0 | ||
| search_suggestor: { |
Member
There was a problem hiding this comment.
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")?; |
Member
There was a problem hiding this comment.
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) { |
Member
There was a problem hiding this comment.
can you put head_yaw into the blackboard like the other subscriptions of the behavior node instead of passing it into this function?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.