3304: Limit number of crease defenders#3456
Conversation
|
Hey I'm also working on aggressive defense if you wanna check it out see what it would look like for us to combine prs, mine is like a robot will try and strip the ball away from the enemy |
itsarune
left a comment
There was a problem hiding this comment.
I tried playing around with max_num_crease_defenders but it doesn't seem to work for me
|
@zuperzane @itsarune apologies for somehow missed the discussion here. I can't get a chance to run #3450 atm (I am trying to unblock a few issues for bazel uprading and my entire environment points to a different bazel version) and it is a bit hard to tell what the specific behavior is just from the code. So I will be sharing my plan here and let's sync (I will also attend the meetings starting this May 31, Sat) For active defender, my original plan was
|
Can't validate at the moment, but I just rebased and pushed since I shipped a fix on proto parsing that was merged some time ealier. Iirc, the max_num_crease_defenders was working locally for me |
250fff9 to
d2d034b
Compare
|
Ok that makes sense my tactic is similar the only difference is that it turns into a ball stealer once it is in between the ball and the net instead of it being the closest. We can talk on Saturday I'll be there |
|
@zuperzane and I have synced, and I will stop my PR here and it will just have a config to limit the number of crease defenders and refactor some code. Superzane has the logic for shadow defender done. Therefore, this PR is ready for review. cc @itsarune |
|
@itsarune oops, I didn't mean to dismiss your review lol |
itsarune
left a comment
There was a problem hiding this comment.
LGTM!
(we set it up to auto-dismiss reviews whenever you make a commit)
Description
In general: improve aggressiveness of defense
Particularly:
active_defender, following the below logic:An active defender is promoted from a pass defender when1. It is closest to the ball or the enemy player that carries the ball2. There is no other active defender on the team at the momentThe specific active defender behavor is still WIP.Testing Done
Resolved Issues
Closes #3304
Related to #3450
Have synced with @zuperzane and we have the same idea on the shadow defender (or active defender). The actual defense logic will be implemented in his PR #3450
Length Justification and Key Files to Review
Review Checklist
It is the reviewers responsibility to also make sure every item here has been covered
.hfile) should have a javadoc style comment at the start of them. For examples, see the functions defined inthunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.TODO(or similar) statements should either be completed or associated with a github issue