Page 1 of 1
Issues with implementing MocoJointReactionGoal
Posted: Tue Feb 20, 2024 10:13 am
by k.downer
Hi,
I was trying to add the MocoJointReactionGoal to my problem, but I have encountered the following issue. When I look at the log file, there is nothing under joint path, loads frame, or expressed.
- Log.png (6.7 KiB) Viewed 1098 times
Here is how I added the goal in my code:
- JointReactionCode.png (16.34 KiB) Viewed 1098 times
I appreciate any help on why this might be happening.
- Kaitlyn
Re: Issues with implementing MocoJointReactionGoal
Posted: Thu Feb 22, 2024 11:21 am
by nbianco
Hi Kaitlyn,
Could you try moving the line 'problem.addGoal(jointReaction);` to the bottom of the code snippet and see if that works? This might be a bug where setting certain values to the goal after adding it to the problem does not apply them properly.
Best,
Nick
Re: Issues with implementing MocoJointReactionGoal
Posted: Fri Feb 23, 2024 6:51 am
by k.downer
Hi Nick,
Thank you for your response. I originally had 'problem.addGoal(jointReaction);` at the end as you described, but I moved it up based on seeing a different forum post. I tried placing it at the end again and running, but I encountered the same issue where the joint path, loads frame, and expressed are all blank in the log.
Best,
Kaitlyn
Re: Issues with implementing MocoJointReactionGoal
Posted: Fri Feb 23, 2024 10:52 am
by nbianco
Hi Kaitlyn,
Hmm, that's odd. There's nothing in the source code that obviously suggest why some things are printed and other are not. Does the goal seem to be working as intended when you solve your problem? You can check in the header of the solution file to see if the joint reaction goal objective term has a non-zero value.
Best,
Nick
Re: Issues with implementing MocoJointReactionGoal
Posted: Fri Feb 23, 2024 12:16 pm
by k.downer
Nick,
Thanks for suggesting to check the solution file. The joint reaction goal has a non-zero value, So I assume it is being added and maybe just not being displayed in the log properly.
Kaitlyn
Re: Issues with implementing MocoJointReactionGoal
Posted: Sat Feb 24, 2024 10:06 am
by nbianco
Hi Kaitlyn,
Good to know! I've filed an issue to track this. If you believe that there are any issues beyond just printing the settings, please let me know.
Best,
Nick