Encountered unrecognized object

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Encountered unrecognized object

Post by Karthick Ganesan » Thu Feb 27, 2020 7:51 am

Hi Moco Team,
I have been using Moco's Maltab interface. Suddenly, when I am loading models, DGF muscle is not being recognized. I got the following warning.
encountered unrecognized Object typename SmoothSphereHalfSpaceForce while reading property components. There is no registered Object of this type; ignoring.
Also for DGF Muscle.

I don't have any other versions of opensim installed on this computer. I downloaded the latest release and added it to system path and edited the old one. I ran configureMoco in Matlab . But still I get the same warning. I could try reinstalling matlab but I wish to avoid it.
What could be the reason for this?

Thanks & Regards,
Karthick.

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Encountered unrecognized object

Post by Christopher Dembia » Thu Feb 27, 2020 10:01 am

What do you get if you run the command org.opensim.modeling.opensimMoco.GetMocoVersionAndDate()?

User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Re: Encountered unrecognized object

Post by Karthick Ganesan » Thu Feb 27, 2020 11:11 am

version 0.3.0, build date 19:32:51 Jan 23 2020

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Encountered unrecognized object

Post by Christopher Dembia » Thu Feb 27, 2020 11:15 am

Can you add the line `MocoStudy()` before you load the model file?

User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Re: Encountered unrecognized object

Post by Karthick Ganesan » Thu Feb 27, 2020 11:20 am

Thanks. It works. Why is it so?

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Encountered unrecognized object

Post by Christopher Dembia » Thu Feb 27, 2020 11:45 am

The Matlab library is split among multiple libraries. The osimMoco library contains those model components but it's only loaded if you've invoked a function in the osimMoco library.

User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Re: Encountered unrecognized object

Post by Karthick Ganesan » Thu Feb 27, 2020 12:40 pm

Oh. Thank you.

POST REPLY