Skip to content

DRAFT: Deterministic gameplay tests - #4040

Draft
nycrat wants to merge 37 commits into
masterfrom
avah/deterministic_gameplay_tests
Draft

nycrat wants to merge 37 commits into
masterfrom
avah/deterministic_gameplay_tests

Conversation

@nycrat

@nycrat nycrat commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Description

Warning

Very WIP.

Testing Done

TODO

Resolved Issues

resolves #3700, resolves #3561

Length Justification and Key Files to Review

TODO

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

@nycrat
nycrat changed the base branch from master to avah/minimal_environment_setup_tscope November 1, 2026 00:08
@nycrat
nycrat changed the base branch from avah/minimal_environment_setup_tscope to master November 1, 2026 00:09
commit b629e35
Author: noir-depresso <ryanliusixian@outlook.com>
Date:   Sat Oct 31 11:58:38 2026 -0700

    cleaning up proto field numbers (#4008)

    * marked all the reserved stuff i thought should be deleted as DELETE

    * deleted the ones confirmed should be deleted and got rid of comments

    * fix protobuff formatting

commit 0f38d0a
Author: Anh Hoang <147113818+the-anh-hoang@users.noreply.github.com>
Date:   Sat Oct 31 11:34:09 2026 -0700

    Add simulated robot abstraction with simulated motor, IMU and robot localizer

    * added simulated objects abstraction; moved ramping from er_force_sim to simulated_motor

    * removed ternary exp, added warnings, removed extra deps

    * simulated IMU; reset on move in er force

    * wired up localizer

    * no more hardcoded config + sensor noise in realism config

    * review: localizer flag + ternaries, const members

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just uses ordered map for everything, so there is guarantee for ordering of robots

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically should be in another PR, this stops pytests from creating an empty directory cause get_runtime_dir() is called by load_command_line_arguments() which is called twice. Technically we shouldn't have get_runtime_dir() create the directory, or only call once.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i forgot if this getSortedKeys function is really necessary here, i do remember messages being different if we let the unordered map do its thing, but idk if it actually affects the simulation. i'll test later

@nycrat
nycrat force-pushed the avah/deterministic_gameplay_tests branch from 3b1007f to a0a2abc Compare November 5, 2026 23:27

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO get rid of this

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.

Fix flaky enemy_ball_placement_test Fix flaky ball placement tests

1 participant