-
Notifications
You must be signed in to change notification settings - Fork 186
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
Position FSM #2173
Position FSM #2173
Conversation
// This is where the current_position can be reassigned based on the | ||
// PlayState | ||
// If keeper, make no changes | ||
if (robot_id_ == 0) { |
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 can't assume 0 is the robot id. you need to get that information from the referee. If i'm not mistaken, there is already a mechanism for AAC to pass this information to its Position. if not, let's figure out how to add it.
soccer/src/soccer/strategy/agent/position/robot_factory_position.cpp
Outdated
Show resolved
Hide resolved
soccer/src/soccer/strategy/agent/position/robot_factory_position.cpp
Outdated
Show resolved
Hide resolved
automated style fixes Co-authored-by: rishiso <[email protected]>
…on.cpp Co-authored-by: Sid Parikh <[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.
hey don't worry about the Goalie fix for now; I worked on that for the Offense PR anyway
your last commit says (not finished) so I'm not hitting merge, but feel free to push it if you're done. |
Description
Implements position management automatically based on states of the game. Positions used to be static (3 defense, 2 offense, 1 goalie), but now they change dynamically.
Associated / Resolved Issue
ClickUp card
Steps to Test
Run in sim and move the ball to different halves. The positions of robots should change dynamically.
Key Files to Review
Review Checklist