Skip to content

Get sim, sim replay, deploy and deploy replay to work.#17

Open
MikeStitt wants to merge 1 commit into
1757WestwoodRobotics:mainfrom
MikeStitt:get-replay-sim-and-robotpy-test-working
Open

Get sim, sim replay, deploy and deploy replay to work.#17
MikeStitt wants to merge 1 commit into
1757WestwoodRobotics:mainfrom
MikeStitt:get-replay-sim-and-robotpy-test-working

Conversation

@MikeStitt
Copy link
Copy Markdown
Contributor

Suggest that we develop some tests to go along with this change.

This pull request has the changes I made to PyKit to get this robotpy program: https://github.com/spiresfrc9106/spiresRobot2026/tree/41762640c5f6642aa6aab3dc169e8a447ac63d61

so that it would do robotpy test of an auto drive out sim and and replay: See https://github.com/spiresfrc9106/spiresRobot2026/blob/41762640c5f6642aa6aab3dc169e8a447ac63d61/tests/replay_test.py#L82

Note that changes to pyfrc to get the test to work are here: https://github.com/spiresfrc9106/spiresRobot2026/blob/41762640c5f6642aa6aab3dc169e8a447ac63d61/examples/pyfrc/pyfrc/test_support/pytest_isolated_tests_plugin.py#L248

This repo is currently running a local version of pykit here: https://github.com/spiresfrc9106/spiresRobot2026/tree/41762640c5f6642aa6aab3dc169e8a447ac63d61/pykit

The repo is able to do simulated replays of deployed robot pykit log files that play back the same.

I've been using this tool to compare realoutputs and replayoutputs portions of a replayed _sim.wpilog file.: https://github.com/spiresfrc9106/spiresRobot2026/blob/41762640c5f6642aa6aab3dc169e8a447ac63d61/tools/find_replay_divergence.py

Again, perhaps we should add some tests similar to robotpy test of pykit similar to the one in tests/replay_test.py

-Mike

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