Page 1 of 1

MocoOutputTrackingGoal

Posted: Fri Jul 07, 2023 11:15 pm
by mohadeseh
Hi all,

I am getting the following error when using the MocoOutputTrackingGoal() function, I have installed the latest version of Moco and OpenSim. What is the cause?

MATLAB error: Unrecognized function or variable 'MocoOutputTrackingGoal'.

Thank you in advance.
Mohadesh

Re: MocoOutputTrackingGoal

Posted: Mon Jul 10, 2023 1:12 pm
by nbianco
Hi Mohadesh,

I just tested OpenSim 4.4 locally and was able to create a MocoOutputTrackingGoal. What version do you have installed?

-Nick

Re: MocoOutputTrackingGoal

Posted: Tue Jul 11, 2023 1:00 am
by mohadeseh
Hi Nick,

I have three versions installed, but I used version 4.4 to link with MATLAB.

Mohadeseh

Re: MocoOutputTrackingGoal

Posted: Wed Jul 12, 2023 9:49 am
by nbianco
Hi Mohadesh,

The issue is that Moco 0.4 is at the top of your Windows PATH, which means that Matlab will find this version before OpenSim 4.4. If you remove that PATH entry, things should work as expected, although it might be worth trying to reinstall to double check.

Best,
Nick

Re: MocoOutputTrackingGoal

Posted: Wed Jul 12, 2023 1:14 pm
by mohadeseh
Thanks Nick, my problem is solved.

Mohadeseh

Re: MocoOutputTrackingGoal

Posted: Thu Jul 13, 2023 6:05 am
by mohadeseh
Hi Nick,

By removing the path, a new problem has arisen, and Moco does not complete the solution, ending with the message: "EXIT: Restoration Failed!"

Mohadeseh

Re: MocoOutputTrackingGoal

Posted: Thu Jul 13, 2023 4:11 pm
by nbianco
Hi Mohadesh,

That means that the problem failed, most likely because it couldn't meet the constraints. Try adding strong CoordinateActuators to all DOFs and see if that converges.

-Nick

Re: MocoOutputTrackingGoal

Posted: Fri Jul 14, 2023 11:19 pm
by mohadeseh
Hi Nick,

When the Moco path exists in Windows at the beginning, the Moco run succeeds, and I receive an error when running the MocoOutputTrackingGoal function. However, if the Moco path is removed, leaving only the OpenSIM 4.4 path, the Moco solution ends at the stage I sent the photo, and the solution is not completed. Nonetheless, the MocoOutputTrackingGoal function executes correctly. I have uninstalled and reinstalled multiple times, but unfortunately, the issue remains unresolved. Please guide me. Thank you.

Mohadeseh

Re: MocoOutputTrackingGoal

Posted: Sat Jul 15, 2023 12:16 am
by mohadeseh
In the above message, I mean the problem that is completely solved with Moco is a mocoTrack problem, and I test the MocoOutputTrackingGoal() function separately, and I have not entered it yet.

Mohadeseh