Skip to content

Added Clear and Reset Field functions to Sandbox Mode#3836

Open
sauravbanna wants to merge 2 commits into
UBC-Thunderbots:masterfrom
sauravbanna:sauravbanna/sandbox_clear_reset
Open

Added Clear and Reset Field functions to Sandbox Mode#3836
sauravbanna wants to merge 2 commits into
UBC-Thunderbots:masterfrom
sauravbanna:sauravbanna/sandbox_clear_reset

Conversation

@sauravbanna

Copy link
Copy Markdown
Contributor

Description

This PR adds 2 new functions to Sandbox Mode:

  • Clear Field: clears the field completely to an empty state
  • Reset Field: resets the field to the default state (6 robots on either side in a line)

To support undoing / redoing these operations, this PR also adds Group Operations, which allow us to undo / redo many operations at once

Testing Done

Tested as part of #3815. Clear and Reset buttons work as expected for both FullSystems

Resolved Issues

Length Justification and Key Files to Review

Review Checklist

It is the reviewers responsibility to also make sure every item here has been covered

  • Function & Class comments: All function definitions (usually in the .h file) should have a javadoc style comment at the start of them. For examples, see the functions defined in thunderbots/software/geom. Similarly, all classes should have an associated Javadoc comment explaining the purpose of the class.
  • Remove all commented out code
  • Remove extra print statements: for example, those just used for testing
  • Resolve all TODO's: All TODO (or similar) statements should either be completed or associated with a github issue

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.

1 participant