Thank you all for your contributions to the biomechanics community! I have some questions about how to use MocoOutputConstraint, I would appreciate it if anyone could give me some advice.
1.I try to use the following codes in Visual Studio C++ to customize bounds for MocoOutputConstraint
Code: Select all
auto* Con= problem.addPathConstraint<MocoOutputConstraint>();
Con ->setOutputPath("/user/defined|path");
Con ->setOutputIndex(0);
Con ->setExponent(1);
auto Coninfo= Con ->updConstraintInfo();
Coninfo.setBounds({-6,6});
What should I do to custom bounds for MocoOutputConstraint?
2.From the links below, I can see that the functions setEndpointConstraintBounds() and getEndpointConstraintBounds() have been added to the class MocoGoal to support MocoConstraintInfo::get/setBounds() in bindings for Matlab/Python. After Moco is updated, can these two methods be called through Matlab/Python API to custom bounds for MocoOutputConstraint?
https://github.com/opensim-org/opensim- ... OG_MOCO.md
https://github.com/opensim-org/opensim-core/issues/3322
Thanks again for your patience and time and I am looking forward to hearing from you!
Best Wishes,
Matthew