MocoOutputTrackingGoal
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
MocoOutputTrackingGoal
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
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
- Nicholas Bianco
- Posts: 1041
- Joined: Thu Oct 04, 2012 8:09 pm
Re: MocoOutputTrackingGoal
Hi Mohadesh,
I just tested OpenSim 4.4 locally and was able to create a MocoOutputTrackingGoal. What version do you have installed?
-Nick
I just tested OpenSim 4.4 locally and was able to create a MocoOutputTrackingGoal. What version do you have installed?
-Nick
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
Re: MocoOutputTrackingGoal
Hi Nick,
I have three versions installed, but I used version 4.4 to link with MATLAB.
Mohadeseh
I have three versions installed, but I used version 4.4 to link with MATLAB.
Mohadeseh
- Attachments
-
- Annotation 2023-07-11 112905.png (45.62 KiB) Viewed 339 times
- Nicholas Bianco
- Posts: 1041
- Joined: Thu Oct 04, 2012 8:09 pm
Re: MocoOutputTrackingGoal
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
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
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
Re: MocoOutputTrackingGoal
Thanks Nick, my problem is solved.
Mohadeseh
Mohadeseh
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
Re: MocoOutputTrackingGoal
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
By removing the path, a new problem has arisen, and Moco does not complete the solution, ending with the message: "EXIT: Restoration Failed!"
Mohadeseh
- Nicholas Bianco
- Posts: 1041
- Joined: Thu Oct 04, 2012 8:09 pm
Re: MocoOutputTrackingGoal
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
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
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
Re: MocoOutputTrackingGoal
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
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
- Attachments
-
- Annotation 2023-07-15 093333.png (27.98 KiB) Viewed 265 times
- mohadeseh shafie
- Posts: 16
- Joined: Fri Feb 19, 2021 4:39 pm
Re: MocoOutputTrackingGoal
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
Mohadeseh