Skip to content

Conversation

@thisjustin123
Copy link
Collaborator

@thisjustin123 thisjustin123 commented Nov 18, 2024

Description:

Adds stability infrastructure and a test case to sponge force reading.

Changes Made:

  1. I noticed that, since python tends to run at a faster framerate (several times faster) than Unity, the python GetForce() can in some form "out-pace" the Unity sim, causing 0.0 force values to be read in between real force values. I added some simple buffering code on the python sponge underneath .GetForce() to account for this.
  2. Added a test case to test the above, ensuring that sponge readings across several frames are nonzero.
  3. Replaced the executable with additional Unity code that stabilizes and simplifies the sponge force reading. There was a lot of dead code before.

Test Plan

Adds a test case for testing force reading.

Also manually tested in @editor script:

image

@YoruCathy YoruCathy merged commit a826a82 into phy-robo-care Nov 18, 2024
1 check passed
@thisjustin123 thisjustin123 deleted the justin/sponge-stability branch January 29, 2025 20:34
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.

3 participants