Skip to content

Conversation

@RobSalati
Copy link
Contributor

Added a function after parsing treatment optimization settings that parses the cost and constraint terms and verifies that they are valid.

  1. Check that terms that have a coordinate tag are using coordinates in the states coordinate list
  2. Check that terms that have a load tag are using moments in the ID loads file
  3. Check that terms that have a muscle tag are using muscles in the EMG data file
  4. Check that terms that have force or moment tags are using forces or moments in GRF files

No verification is done for bodies or markers because those are not immediately available after parsing. We could potentially play with some opensim API calls to get all of the bodies and markers in use and verify those fields as well.

If there is an incompatible cost or constraint term, an error message is displayed in the command window. I do not have any errors currently, but I can do that if we want.

@SpencerTWilliams I think we should still have a dry run of computeGpopsEndpointFunction so that we can make sure everything works and give error messages in places that we want instead of inside gpops.

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.

4 participants