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

Pass receives should get out of the way when another robot is taking a shot #3343

Open
2 tasks
itsarune opened this issue Oct 5, 2024 · 0 comments
Open
2 tasks
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Elaborated Starters Gameplay

Comments

@itsarune
Copy link
Contributor

itsarune commented Oct 5, 2024

Description of the task

In Robocup, we observed that one of our attacking robots can take a shot and another attacking robot that is in the shot line won't move out of the way and may try to intercept the ball.

This is bad because we might accidentally block our own shot.

Possible approach:

  1. The Strategy class could record when a shot is in progress
  2. Implement a new ReceiverFSM state called "MoveAwayFromShotInProgress" with associated guard ShouldMoveAwayFromShot

Acceptance criteria

  • Add simulated gameplay test (receiver_tactic_test.py) that tests this scenario (you'll need to make a new simulated gameplay pytest (eg: pass_defender_tactic_test.py)
  • Implement logic to make the receiver move out of the way when another robot is taking a shot

Blocked By

#3246

@itsarune itsarune added Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Gameplay Elaborated Starters labels Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty - 7 Well-defined tasks that requires some understanding about the relevant system and tools Elaborated Starters Gameplay
Projects
None yet
Development

No branches or pull requests

1 participant