MATLAB API cannot find vtp files

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Sina Porsa
Posts: 5
Joined: Sun Jul 15, 2018 4:51 pm

MATLAB API cannot find vtp files

Post by Sina Porsa » Mon Nov 19, 2018 2:54 pm

I have recently installed OpenSim4.0 andconverted my osim files and I can open them in GUi, but whenever I run my matlab api scripts it says it cannot find any of my vtp files. I know it will not effect my calculations but it's annoying as it keeps printing on command window whenever I load a model or use InitSystem()
any ideas?

Tags:

User avatar
jimmy d
Posts: 1375
Joined: Thu Oct 04, 2007 11:51 pm

Re: MATLAB API cannot find vtp files

Post by jimmy d » Tue Nov 20, 2018 10:31 am

Yes, it is annoying. We have it on our boards to do something about ([urlhttps://github.com/opensim-org/opensim-core/issues/2375]#2375[/url]). In the meantime you could try adding the below code in Matlab;

Code: Select all

% Path to the OpenSim Geometry folder (below is a Mac Path)
path='/Users/username/Applications/OpenSim 4.0/OpenSim 4.0.app/Contents/Resources/OpenSim/Geometry';
ModelVisualizer.addDirToGeometrySearchPaths(path);
Let us know if the geometry shows up when including the above functions?

User avatar
Sina Porsa
Posts: 5
Joined: Sun Jul 15, 2018 4:51 pm

Re: MATLAB API cannot find vtp files

Post by Sina Porsa » Tue Nov 20, 2018 2:49 pm

Thanks James, yes it solved the problem.
For anyone else who may have the same issue: this is the default path for windows users: c:\OpenSim4.0\Geometry\

POST REPLY