Page 1 of 1

Distance Constraint Pairs with OMOCO files

Posted: Wed Sep 06, 2023 2:38 pm
by russellj
Hi All,

I'm trying to run Moco optimizations that are loaded in from an .OMOCO file for 3-D gait simulations. When I do this in MATLAB, I get a warning message that looks like the image below:
ignoring moco frame pairs 2.PNG
ignoring moco frame pairs 2.PNG (26.19 KiB) Viewed 525 times
It seems like when I run an optimization without loading the .OMOCO file - instead using MATLAB code to generate the study, these constraints are not ignored. There's no difference between the code in these two methods - in one case I save the OMOCO file before loading it to run on another computer and in the other case the code runs the study directly.

Is there any reason why the .OMOCO file won't work for the Moco distance constraint pairs?

Thanks,
Russell

Re: Distance Constraint Pairs with OMOCO files

Posted: Fri Sep 08, 2023 9:23 am
by nbianco
Hi Russell,

Nothing is wrong on your end, it just seems that we don't support deserialization (i.e., file reading) for MocoFrameDistanceConstraintPair. I created to capture this bug: https://github.com/opensim-org/opensim-core/issues/3542.

-Nick

Re: Distance Constraint Pairs with OMOCO files

Posted: Sat Sep 09, 2023 10:13 am
by russellj
Thanks for the help Nick! I'll find a workaround for now.
Russell