Page 1 of 1
Extracting C3D file
Posted: Thu Feb 07, 2019 11:11 pm
by saylee.p
Dear sir,
I am a new user for Opensim and using vicon nexus system data for analysis. I am facing problem with extracting data from C3D file. I used most of the tools listed under the section 'Tools for preparation motion data'. But every tool shows some error. I am using Matlab 2018b 64-bit licence version for running the codes.
Since, there was no resolution for errors available I tried using TRC files generated from vicon nexus pipeline(there is available option to generate TRC file and GRF MOT file). But if that TRC file is used for scaling then, There is an error showing 'InverseKinematicSolver:Model has no markers!' in the red circle option and the solver keeps executing scaling.
I am also attaching a list of error detected while using the tools to extract the data.
Please suggest some solution.
Re: Extracting C3D file
Posted: Thu Feb 07, 2019 11:16 pm
by saylee.p
Also, as mentioned by the developers, if I try to use the MatLab utilities from the Opensim4.0 resources, the MatLab code c3dExport gives an error as follows even though I have added all the function files to the MatLab path.
Undefined variable "C3DFileAdapter" or class "C3DFileAdapter".
Error in osimC3D (line 65)
tables = C3DFileAdapter().read(path2c3d, ForceLocation);
Error in c3dExport (line 35)
c3d = osimC3D(c3dpath,1);
Re: Extracting C3D file
Posted: Fri Feb 08, 2019 10:47 am
by jimmy
c3dExport.m is an example file, osimC3D.m is a Matlab side wrapper for doing typical C3D tasks, and the OpenSim class C3DFileAdaper() is doing the heavy lifting.
Undefined variable "C3DFileAdapter" or class "C3DFileAdapter".
This indicates that you haven't set up your opensim-matlab environment correctly and Matlab can't find C3DFileAdapter(). You can test this by typing the following lines into Matlab
Code: Select all
import org.opensim.modeling.*
c3d = C3DFileAdapter()
If this gives you an error, it means you have to setup run the configureOpenSim.m script. Details can be found
here
Re: Extracting C3D file
Posted: Fri Feb 15, 2019 12:46 am
by saylee.p
Dear sir,
I followed the procedure for opensim-matlab environment setup as per the user's guide. But I am still getting an error which I have mentioned in the word document attached here. I have also attached screenshot of error and added path of Opensim Bin Directory.
Please look into this and suggest the solution.
Re: Extracting C3D file
Posted: Fri Feb 15, 2019 8:54 am
by tkuchida
Have you verified the value of your Windows PATH environment variable?
Re: Extracting C3D file
Posted: Fri Feb 15, 2019 9:36 am
by saylee.p
tkuchida wrote: ↑Fri Feb 15, 2019 8:54 am
Have you verified the value of your Windows PATH environment variable?
I don't know how to do that. Is it similar to adding path to environment variable?
Re: Extracting C3D file
Posted: Sat Feb 16, 2019 5:21 am
by saylee.p
tkuchida wrote: ↑Fri Feb 15, 2019 8:54 am
Have you verified the value of your Windows PATH environment variable?
dear sir,
I verified the value of windows path environment variable. And followed the procedure for scripting with matlab with configureOpensim.m as well as manual setup. But still getting the error as follows.
>> org.opensim.modeling.opensimCommon.GetVersion()
Failed to load one or more dynamic libraries for OpenSim.
java.lang.UnsatisfiedLinkError: C:\OpenSim 4.0-2018-08-27-ae111a49\bin\osimJavaJNI.dll: Can't find dependent libraries
Make sure OpenSim's bin directory is on your PATH.
See
https://simtk-confluence.stanford.edu/d ... ith+Matlab
Warning: A Java exception occurred trying to load the
org/opensim/modeling/opensimCommonConstants class:
Java exception occurred:
java.lang.UnsatisfiedLinkError:
org.opensim.modeling.opensimCommonJNI.GET_SYSTEM_INFO_get()Ljava/lang/String;
at org.opensim.modeling.opensimCommonJNI.GET_SYSTEM_INFO_get(Native Method)
at
org.opensim.modeling.opensimCommonConstants.<clinit>(opensimCommonConstants.java:12)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.mathworks.jmi.OpaqueJavaInterface.findClass(OpaqueJavaInterface.java:137)
Java exception occurred:
java.lang.UnsatisfiedLinkError:
org.opensim.modeling.opensimCommonJNI.GetVersion()Ljava/lang/String;
at org.opensim.modeling.opensimCommonJNI.GetVersion(Native Method)
at org.opensim.modeling.opensimCommon.GetVersion(opensimCommon.java:25)
Re: Extracting C3D file
Posted: Thu Nov 28, 2019 4:53 am
by mritula
Hi,
My c3dExport.m was working fine till now. But sudden;y started popping up the same above mentioned error. I just changed the Path details in environmental variables as I was trying to implement MOCO. Can someone help me to overcome this?
Opensim bin folder is in my environmental variables too.
Thanks,
Mritula
Re: Extracting C3D file
Posted: Sun Dec 01, 2019 10:07 pm
by aymanh
Hello,
Moco comes with its own version of OpenSim that is not compatible with OpenSim 4.0 public release. We're trying to resolve this so you can use both in the same setting but for the time being you can have either OpenSim 4.0 or Moco binaries in your path and you need to remove the other from the path.
Hope this helps,
-Ayman