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

Some improvements of trifingerpro_post_submission #169

Merged
merged 8 commits into from
Sep 28, 2023
Merged

Conversation

luator
Copy link
Member

@luator luator commented Sep 28, 2023

Description

It turned out that the new push sensor test still has frequent false positives (though fewer than before). So for now not fail the self-test due to push sensors by default but add flags to make the push sensor test fatal and also to change the threshold. This allows us to adapt the test on the system without need to update the code all the time.
The results of the push sensor test is now also always logged (independent of success or failure), so we can let it run for a while and then monitor how the test performs and also whether the push sensor values drift over time.

Further refactor a bit and add a flag to skip the camera tests (for faster testing).

How I Tested

By running it on one of the robots.

We still get false positives sometimes, so for now make a failing push
sensor test *not* fail the whole self-test but add a flag
`--fatal-push-sensor-test` so we can make it fatal without changing the
code if we want.
So we can log the data to see how much the values drift over time.
This check recommends ternary operator instead of if-else-blocks
but I find them much harder to read in Python, so disable this
error.
Move push sensor test code to separate function.
Add a helper function `_move` to avoid code duplication on all the "move
on min jerk trajectory" code blocks.
So we can change the threshold without needing to update the code.
@luator luator added the enhancement New feature or request label Sep 28, 2023
@luator luator self-assigned this Sep 28, 2023
@luator luator merged commit 0140837 into master Sep 28, 2023
7 checks passed
@luator luator deleted the fkloss/postsub branch September 28, 2023 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant