hi,
I am using osimC3D.m utility and c3dExport.m example script for C3D extraction. But while using that trc file for scaling opensim gives an error as 'InverseKinematicSolver: Model has No Markers!'.
Also, if I try to preview the markers using preview the experimental data I can see the markers but with different rotation and translation.
How to change the rotation matrix in c3dExport.m to match the co-ordinate system? also how to translate the markers to match the model?
Note: I am using data collected using vicon nexus system and
Opensim 4.0
Matlab 2018b
Windows 7
Model markers aren't found and marker rotations
- saylee patkar
- Posts: 35
- Joined: Wed Jun 20, 2018 1:03 am
Re: Scaling error using file extracted using 'c3dExport.m'
Sounds like your model doesn't have any markers on it, which makes it hard for the InverseKinematicsSolver to pose the model. You can see where the error is (intentionally) thrown in the source code, here. Perhaps add markers to your model?But while using that trc file for scaling opensim gives an error as 'InverseKinematicSolver: Model has No Markers!'.
Have you looked into the example c3dExport Script where the rotation gets made?Also, if I try to preview the markers using preview the experimental data I can see the markers but with different rotation and translation.
Code: Select all
% Construct an opensimC3D object with input c3d path
% Constructor takes full path to c3d file and an integer for forceplate
% representation (1 = COP).
c3d = osimC3D(c3dpath,1);
....
%% Rotate the data
c3d.rotateData('x',-90)
in GUI Navigator
- saylee patkar
- Posts: 35
- Joined: Wed Jun 20, 2018 1:03 am
Re: Scaling error using file extracted using 'c3dExport.m'
I checked the .trc file it has markers(since I am using example data from Tim Dorn Gait Data to check the code). Still it is showing the same error. I didn't understand what to check in the source code. Also the preview of experimental data shows all the markers as well as the scaling tool shows the number of frames and markers.Sounds like your model doesn't have any markers on it, which makes it hard for the InverseKinematicsSolver to pose the model. You can see where the error is (intentionally) thrown in the source code, here. Perhaps add markers to your model?
and thank you for the suggestion, I was able to solve the rotation problem.
Note: In screenshots the .trc file used are before solving rotation problem.
- Attachments
-
- ExpDataPreview.png (216.31 KiB) Viewed 347 times
-
- IKSolverError.png (230.2 KiB) Viewed 347 times
-
- ScalingTool.png (225.23 KiB) Viewed 347 times
Re: Scaling error using file extracted using 'c3dExport.m'
There are no markers on the model. There are experimental markers (blue) and there are model markers (pink). Where are the markers that belong to the model?
- saylee patkar
- Posts: 35
- Joined: Wed Jun 20, 2018 1:03 am
Re: Model markers aren't found and marker rotations
Does this issue occurs if I don't add the .xml file in the scaling tool? Because I think that file is set as reference for scaling.
Re: Model markers aren't found and marker rotations
Perhaps try to add the markers to the model to the model by expanding the model properties in the navigator, right clicking on the markers, and adding the markers from a file. Save the model and reopen to see if the models are there.
- saylee patkar
- Posts: 35
- Joined: Wed Jun 20, 2018 1:03 am
Re: Model markers aren't found and marker rotations
Hi sir,
I added markers from the marker set but the problem still exists. In scaling tool window the static pose weights are not imported from the file. The run button thus, is not highlighted.
I added markers from the marker set but the problem still exists. In scaling tool window the static pose weights are not imported from the file. The run button thus, is not highlighted.
- Attachments
-
- ScalingError.png (224.57 KiB) Viewed 296 times
-
- ExpData.png (275.62 KiB) Viewed 296 times