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

New solo offense (old branch died) #2261

Open
wants to merge 8 commits into
base: ros2
Choose a base branch
from
Open

New solo offense (old branch died) #2261

wants to merge 8 commits into from

Conversation

rishiso
Copy link
Contributor

@rishiso rishiso commented Apr 29, 2024

Description

Due to Comp 2024 limitation of shoot-only offense, this PR creates a 'Solo Offense' Position that assigns one robot to constantly follow the ball, either playing defense on another robot that has the ball or taking a shot toward the opposition goal.

Dependent on #2240, probably needs to be rebased once that is merged into ros2.

Steps to Test

  1. Force one robot to be SoloOffense through RobotFactory Position
  2. make run-sim

Expected result:???
The robot should track the ball and go for shots if the ball is not in possession by the opposing team.

Key Files to Review

  • solo_offense.cpp
  • solo_offense.hpp

Review Checklist

  • Docstrings: All methods and classes should have the file appropriate docstrings which follow the guidelines in the "Contributing" page of our docs.
  • Remove extra print statements: Any print statements used for debugging should be removed
  • Tag reviewers: Tag some people for review and ping them on Slack

(Optional) Sub-issues (for drafts)

Note: if you find yourself breaking this PR into many smaller features, it may make sense to break up the PR into logical units based on these features.

  • Step 1
  • Step 2

@rishiso rishiso marked this pull request as ready for review April 29, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants