Search found 94 matches

by Jack Zhao
Thu Jul 19, 2018 9:02 am
Forum: OpenSim
Topic: Array<string> destructor incurs an exception
Replies: 5
Views: 655

Re: Array<string> destructor incurs an exception

By the way, OpenSim can be accessed in MATLAB via the scripting interface (see the "Scripting with Matlab" page in the Confluence documentation, https://simtk-confluence.stanford.edu:8443/display/OpenSim/Scripting+with+Matlab ), which may be smoother than using mex functions. Dear Thomas: Thank you...
by Jack Zhao
Wed Jul 11, 2018 2:52 am
Forum: OpenSim
Topic: getworkingstate() and get a state at a specific time ?
Replies: 3
Views: 462

Re: getworkingstate() and get a state at a specific time ?

What is the meaning of Model::getworkingstate() ? Please see the API documentation here: https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1Model.html#a18e49f47403e7dd8aab6a2ebb8f8f7cc . In most cases, you can probably just hold onto the State returned by initSystem(): //C++ State& s = myM...
by Jack Zhao
Tue Jun 26, 2018 7:55 pm
Forum: Grand Challenge Competition to Predict In Vivo Knee Loads
Topic: Which of the ligaments in the 4th-JW patient's right lower limb were removed after the surgeries?
Replies: 0
Views: 434

Which of the ligaments in the 4th-JW patient's right lower limb were removed after the surgeries?

Dear All: Could I check with you just one question: Which of the ligaments in the patient's right lower limb, corresponding to the model file in the 4th-JW folder, were removed after the total hip and knee replacement surgery? Please kindly understand that, we are concerning about this since it may ...
by Jack Zhao
Tue May 08, 2018 2:12 am
Forum: OpenSim
Topic: Decomposition of the ground reaction force
Replies: 3
Views: 436

Re: Decomposition of the ground reaction force

Perhaps you're looking for the Induced Accelerations Analysis ( https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1InducedAccelerations.html#details ). See this paper: Hamner, S.R., Delp, S.L. Muscle contributions to fore-aft and vertical body mass center accelerations over a range of runn...
by Jack Zhao
Sat May 05, 2018 8:17 pm
Forum: OpenSim
Topic: Decomposition of the ground reaction force
Replies: 3
Views: 436

Decomposition of the ground reaction force

Dear All:
Could anyone help with a question that, are there any methods using OpenSim API (or GUI) for the decomposition of the ground reaction force for each muscle ?

Thank you in advance!

Best regards
Jack
by Jack Zhao
Tue Feb 27, 2018 8:32 am
Forum: OpenSim
Topic: measurement set
Replies: 3
Views: 297

Re: measurement set

Please see the doxygen documentation for the setAxisNames() method: https://simtk.org/api_docs/opensim/api_docs/classOpenSim_1_1BodyScale.html#a43c97dfbb1823cf4eead291e27970a96 . The argument must be of type Array<std::string>. In MATLAB, you need to do something like the following: import org.open...
by Jack Zhao
Mon Feb 26, 2018 1:56 am
Forum: OpenSim
Topic: AnalyzeTool API error in MATLAB
Replies: 2
Views: 297

Re: AnalyzeTool API error in MATLAB

ERROR- a storage object containing the time histories of states was not specified. A states file was not provided ( https://github.com/opensim-org/opensim-core/blob/937e9387c93c327df466da56ee59696e4e0f3d57/OpenSim/Tools/AnalyzeTool.cpp#L469 ). The "setupAndRunAnalyzeBatchExample.m" example might be...
by Jack Zhao
Sat Feb 24, 2018 3:51 am
Forum: OpenSim
Topic: AnalyzeTool API error in MATLAB
Replies: 2
Views: 297

AnalyzeTool API error in MATLAB

Dear All: When I try to use the MATLAB API AnalyzeTool, it prompts: ava exception occurred: java.io.IOException: analyzeTool.verifyControlsStates: ERROR- a storage object containing the time histories of states was not specified. at org.opensim.modeling.opensimModelJNI.AnalyzeTool_run__SWIG_0(Native...
by Jack Zhao
Sat Feb 24, 2018 3:49 am
Forum: OpenSim
Topic: Running Static Optimization in Matlab?
Replies: 15
Views: 6362

Re: Running Static Optimization in Matlab?

When attemping static optimization from matlab using the AnalyzeTool approach described above I get the following error message: analyzeTool.verifyControlsStates: ERROR- a storage object containing the time histories of states was not specified. at org.opensim.modeling.opensimModelJNI.AnalyzeTool_r...
by Jack Zhao
Fri Feb 23, 2018 10:12 pm
Forum: OpenSim
Topic: Array<string> destructor incurs an exception
Replies: 5
Views: 655

Re: Array<string> destructor incurs an exception

tkuchida wrote:Do you get the same exception if the code is run without being embedded in a mex function? It might help your debugging efforts to know whether the issue is specific to the mex function implementation.
Dear Tom:
Thanks so much for the reply, and I will go on try it accordingly.

Regards