-
Notifications
You must be signed in to change notification settings - Fork 187
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
Wall tactic #1661
Wall tactic #1661
Conversation
This reverts commit 2e6e543.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably don't need to maintain a copy of worldstate and ball_pt
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just remove the bal_pt and goal_pt in the init of wall tactic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor nit
'fix invisible robot assignment' fixed the flaky wall assignment issues, as some robots that weren't visible were being assigned to be part of the wall |
for i in range(self.num_wallers) | ||
} | ||
|
||
for se, rr in role_requests.items(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
take out these debug prints
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done in different PR, ignore for now
Co-authored-by: Kyle Stachowicz <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Creates wall tactic, which builds a wall of n robots between the ball and the goal.
Associated Issue
https://app.clickup.com/t/v5cpe0
Steps to test
Test Case 1
Expected result: 3 robots (ids 0-2) should move to form a wall and track the ball (relatively) smoothly. They should block the ball from being scored. They should also never enter the penalty box or touch its bounding lines.
Test Case 2
init()
method of gameplay'splay/wall_ball.py
that controls how many robots are in the wall tacticExpected result: N robots should move now, same behavior as before.
Known Issues
This is not true; both move action and move skill have a face_point. Relaunch sim if this error pops up.