Skip to content

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

@itsarune

Description

@itsarune

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

Metadata

Metadata

Assignees

Labels

Difficulty - 7Well-defined tasks that require some understanding about the relevant system and toolsElaborated StartersGameplay

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions