Skip to content

Searcher Standing Delay - #1735

Merged
paudar merged 12 commits into
HULKs:mainfrom
paudar:defender-searcher-delay
Jul 20, 2025
Merged

Searcher Standing Delay#1735
paudar merged 12 commits into
HULKs:mainfrom
paudar:defender-searcher-delay

Conversation

@paudar

@paudar paudar commented Mar 13, 2025

Copy link
Copy Markdown
Contributor

Why? What?

Suppress turning of a searcher for a dynamic time after role assignment.
The time depends on the distance to the last known ball position and is scaled with an parameter to estimate a hypothetical ball velocity in m/s towards the robot. The effect only applies in the own half of the field and in the y-coordinates of the penalty box.

Fixes #1395

The way of keeping track of the last role was rewritten to be able to store the time of the last role change.

Ideas for Next Iterations (Not This PR)

Differentiate, weather the last seen ball is in the opponent-half of the field or not.

How to Test

You can see the effects in the standing_searcher-scenario (incl. defender to searcher change after penalty or in opponent half).

@github-project-automation github-project-automation Bot moved this to Request for Review in Development Mar 13, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch from 5172c1e to 30b2792 Compare March 13, 2025 20:10
Comment thread crates/control/src/behavior/search.rs Outdated

@oleflb oleflb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

looks good, only need to fix test cases

@schmidma schmidma added the GO25 label Mar 14, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch 2 times, most recently from 17adfbd to effb203 Compare March 14, 2025 07:47
@schluis schluis moved this from Request for Review to In Progress in Development Mar 15, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch 2 times, most recently from f72ab03 to de3527d Compare March 16, 2025 08:26

@oleflb oleflb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this ready to be merged? I recall there was some issue with this?

@paudar
paudar force-pushed the defender-searcher-delay branch from 3627970 to 53d9d62 Compare April 2, 2025 14:58
@paudar

paudar commented Apr 2, 2025

Copy link
Copy Markdown
Contributor Author

Right now it fixes the linked issue and should work.

TODO (for next issue?) is to refactor behaviour to only have one last_role variable (and not previous_role: Role and real_previous_role: Role

@oleflb oleflb removed the GO25 label Apr 8, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch from 53d9d62 to 8a63927 Compare May 18, 2025 10:29
@paudar

paudar commented May 18, 2025

Copy link
Copy Markdown
Contributor Author

TODO (for next issue?) is to refactor behaviour to only have one last_role variable (and not previous_role: Role and real_previous_role: Role

Storing the last role is rewritten and the behaviour can still be observed in the behaviour simulator

@paudar paudar moved this from In Progress to Request for Review in Development May 28, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch from ac2a36b to 266c328 Compare July 2, 2025 15:15
@paudar
paudar force-pushed the defender-searcher-delay branch from 0300ae3 to 583dabe Compare July 13, 2025 19:24
@paudar paudar removed the status in Development Jul 13, 2025
@paudar paudar moved this to Request for Review in Development Jul 13, 2025
@paudar
paudar requested a review from oleflb July 18, 2025 12:31
Comment thread crates/bevyhavior_simulator/src/bin/standing_searcher.rs
Comment thread crates/control/src/behavior/node.rs
Comment thread crates/control/src/behavior/node.rs
@paudar
paudar force-pushed the defender-searcher-delay branch 2 times, most recently from 23d4d78 to f830f88 Compare July 19, 2025 11:54
@paudar paudar added the is:Dependent This is blocked because something else needs to happen first. label Jul 19, 2025
@paudar
paudar force-pushed the defender-searcher-delay branch from 3486686 to 28826f0 Compare July 19, 2025 20:43
@paudar
paudar force-pushed the defender-searcher-delay branch from 28826f0 to 7af02ba Compare July 19, 2025 23:36
@paudar paudar removed the is:Dependent This is blocked because something else needs to happen first. label Jul 19, 2025
@oleflb

oleflb commented Jul 20, 2025

Copy link
Copy Markdown
Contributor

@paudar merge when ready

@paudar
paudar added this pull request to the merge queue Jul 20, 2025
Merged via the queue into HULKs:main with commit e88be28 Jul 20, 2025
27 checks passed
@paudar
paudar deleted the defender-searcher-delay branch July 20, 2025 00:44
@github-project-automation github-project-automation Bot moved this from Request for Review to Done in Development Jul 20, 2025
knoellle pushed a commit to knoellle/hulk that referenced this pull request Aug 16, 2025
* add timeout for defender to become searcher

move functionality of delayed movement of defender that became earcher in searcher

make the standing time after role change dynamic depending on last known ball posiiton

add senario and fmt

rename variable

undo change of if condition

add new edge detection

change ball position in passive_defender_positioning

* only affect searchers that where defender

* add check for y-position of searcher

* fmt file

* stand only when in own half

* make previous role the real previous role

* forever keeper

* more edge-cases in standing seracher bevi_test

* change bevihavior scenario

* add aditional assertion at standing_searcher bevytest

* add assertions to bevihavior standing_searcher

* change parameter for later search motion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Let defenders start searching later

5 participants