Page 1 of 1

Encountered unrecognized object

Posted: Thu Feb 27, 2020 7:51 am
by karthick_ganesan
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.

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 10:01 am
by chrisdembia
What do you get if you run the command org.opensim.modeling.opensimMoco.GetMocoVersionAndDate()?

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 11:11 am
by karthick_ganesan
version 0.3.0, build date 19:32:51 Jan 23 2020

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 11:15 am
by chrisdembia
Can you add the line `MocoStudy()` before you load the model file?

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 11:20 am
by karthick_ganesan
Thanks. It works. Why is it so?

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 11:45 am
by chrisdembia
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.

Re: Encountered unrecognized object

Posted: Thu Feb 27, 2020 12:40 pm
by karthick_ganesan
Oh. Thank you.