Page 1 of 2

Joint Load Optimization Plugin

Posted: Fri Apr 20, 2018 3:24 am
by karthick_ganesan
Dear All,
How to install joint load optimization plugin? Please let me know.
Thanks & Regards,
Karthick.

Re: Joint Load Optimization Plugin

Posted: Fri Apr 20, 2018 6:36 pm
by tkuchida
The Confluence documentation has a couple pages on plugins:
- "Using Plugins" - https://simtk-confluence.stanford.edu/d ... ng+Plugins
- "Creating Plugins" - https://simtk-confluence.stanford.edu/d ... ng+Plugins

Re: Joint Load Optimization Plugin

Posted: Mon Apr 23, 2018 6:53 am
by karthick_ganesan
Dear Tom,
Thanks for your reply. I went through the documentation and followed the procedure. But I got errors while building in Visual Studio. I am using opensim 3.3 and Visual studio express 2013 for windows desktop. I could build analysis plugin example without error. A screenshot of the error is attached. What could be the issue. Please let me know.

Thanks & Regards,
Karthick
Error Visual Studio.png
Error Visual Studio.png (61.64 KiB) Viewed 1380 times

Re: Joint Load Optimization Plugin

Posted: Mon Apr 23, 2018 2:17 pm
by tkuchida
Difficult to say exactly without seeing the code. Based on errors 1 and 2, you are trying to modify a value returned by a getXXX() method (you may need to use the updXXX() version of the method instead, depending on what you are trying to do). Not sure about errors 3 and 5; perhaps you're missing #include <OpenSim.h>? Based on the text in the last column, you are building DeMersOptimizationPlugin, which I presume you downloaded from a simtk project. Was that code designed to work with OpenSim 3.3?

Re: Joint Load Optimization Plugin

Posted: Tue Apr 24, 2018 12:01 am
by karthick_ganesan
Yes. I downloaded the source code from Simtk project page.
https://simtk.org/projects/jointloadopt
I am not sure whether the code was designed to work with opensim 3.3. I could not find this information in the project page. How can I find that information?

Re: Joint Load Optimization Plugin

Posted: Tue Apr 24, 2018 1:41 am
by tkuchida
The citation provided on the simtk project page is for a paper that was published in 2014. OpenSim 3.3 was not released until July 2015 and it's unlikely that the code has been updated.

Re: Joint Load Optimization Plugin

Posted: Thu Apr 26, 2018 9:25 am
by karthick_ganesan
I could build the source code successfully with opensim 3 and VC10Pro. It is installed in the plugins directory. But I could not load the plugin. It says " unable to load library DeMersOptimizationPlugin. Plugin not loaded". What could be the problem.

Re: Joint Load Optimization Plugin

Posted: Thu Apr 26, 2018 9:45 am
by tkuchida
Could be a compatibility issue: the plugin must be built with the same version of Visual Studio as the OpenSim distribution. Please see the "Creating Plugins" page in the Confluence documentation (https://simtk-confluence.stanford.edu/d ... ng+Plugins).

Re: Joint Load Optimization Plugin

Posted: Thu Apr 26, 2018 11:28 pm
by karthick_ganesan
I built the plugin with compatible version of visual studio and opensim: OpenSim 3.0 VC10P and Visual Studio 2010 Professional.

Re: Joint Load Optimization Plugin

Posted: Fri Apr 27, 2018 12:10 am
by tkuchida
How did you determine that the plugin should be built with OpenSim 3.0? The "Initial release" date on the simtk project page is January 1, 2014, so I would have expected it to use version 3.1.