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

Improve heuristics for angular dynamics fitting #177

Open
nickbianco opened this issue Jun 5, 2023 · 0 comments
Open

Improve heuristics for angular dynamics fitting #177

nickbianco opened this issue Jun 5, 2023 · 0 comments

Comments

@nickbianco
Copy link
Collaborator

Currently, the angular dynamics fitting step (handled by DynamicsFitter::zeroLinearResidualsAndOptimizeAngular works generally well but can either fail or lead to undesired results in a few specific ways:

  1. The threshold set by avgAngularChangeThreshold may cause the iterative fitter to abort early for subjects/trials that might have converged if using a looser tolerance.
  2. For data with large angular dynamics residuals, the iterative fitter will agressively try to minimize residuals at the expense of mangling the good kinematic trajectory achieved by MarkerFitter.

These issues could be addressed using improved heuristics for the angular dynamics fitting step. The first issue could be handled by ignoring the threshold for a set number of initial iterations and then checking to see if the threshold is violated and re-running with reaction wheels enabled. The second issue could be addressed in a similar fashion: we check if the converged solution deviates from the marker fitting solution based on some percentage increase in marker error and/or change in joint angles, upon which we also re-run with reaction wheels enabled.

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

No branches or pull requests

1 participant