model is sinking during RRA and CMC
Posted: Tue Mar 18, 2014 10:00 am
Hello
I’m using Lee-son toolbox to convert my vicon files. However, when I view my static and dynamic, trc and mot files in GUI, my trc model stand outside the plate (apply gait2392 model) and the same happen with my mot file, the model walks also outside the plate.
I also have some issues with creating my grf.xml file. We are using 6 force plates so the feet strike 3 force plates per trial which means that I have 3 external forces. first, I figure from the mot file which force plate has been striked by which foot (right or left foot) and based on this info I start create my external forces, for example if the right foot strike plate 1, left foot strike plate 3, and right foot strike plate 5, then for my first external force (Right_GRF) I check "ground_force_vx1" , "ground_force_px1", and "ground_torque_x1". for second external force (Left_GRF) I check ground_force_vx3" , "ground_force_px3", and "ground_torque_x3". For third external force (Right_GRF) I check ground_force_vx5" , "ground_force_px5", and "ground_torque_x5". After creating my grf.xml file, I compare it with the OpenSim subject01_walk_grf.xml, I found that both file are identical until describing the external force then the both file are completely different. As shown below, I copy and paste one part of each file to show the difference. I assume this why my model is sinking when I apply RRA and CMC.
Thanks
Abeer
my GRF.XML file
“”> -<PrescribedForce name="ExternalForce_1">
<!--Name of the body the force is applied to.-->
<body> calcn_r </body>
<!--Flag indicating whether the point (specified in pointFunctions) is in global frame-->
<pointIsGlobal> false </pointIsGlobal>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame-->
<forceIsGlobal> true </forceIsGlobal>
<!--Three functions describing the force to be applied.-->
-<FunctionSet name="forceFunctions"> -<objects> -<NaturalCubicSpline name="3_ground_force_vx"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 </y> </NaturalCubicSpline> -<NaturalCubicSpline name="3_ground_force_vy"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 </y> </NaturalCubicSpline> -<NaturalCubicSpline name="3_ground_force_vz"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 </y> </NaturalCubicSpline>””
Subject01_walk_grf.xml
“”-<objects>
-<PrescribedForce name="ExternalForce_1">
<!--Name of the body the force is applied to.-->
<body> calcn_r </body>
<!--Flag indicating whether the point (specified in pointFunctions) is in global frame-->
<pointIsGlobal> false </pointIsGlobal>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame-->
<forceIsGlobal> true </forceIsGlobal>
<!--Three functions describing the force to be applied.-->
-<FunctionSet name="forceFunctions"> -<objects> -<GCVSpline name="#1">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x> <y> </y> <weights> </weights> <coefficients> </coefficients> </GCVSpline>
-<GCVSpline name="#2">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x> <y> </y> <weights> </weights> <coefficients> </coefficients> </GCVSpline>
-<GCVSpline name="#3">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x>””
I’m using Lee-son toolbox to convert my vicon files. However, when I view my static and dynamic, trc and mot files in GUI, my trc model stand outside the plate (apply gait2392 model) and the same happen with my mot file, the model walks also outside the plate.
I also have some issues with creating my grf.xml file. We are using 6 force plates so the feet strike 3 force plates per trial which means that I have 3 external forces. first, I figure from the mot file which force plate has been striked by which foot (right or left foot) and based on this info I start create my external forces, for example if the right foot strike plate 1, left foot strike plate 3, and right foot strike plate 5, then for my first external force (Right_GRF) I check "ground_force_vx1" , "ground_force_px1", and "ground_torque_x1". for second external force (Left_GRF) I check ground_force_vx3" , "ground_force_px3", and "ground_torque_x3". For third external force (Right_GRF) I check ground_force_vx5" , "ground_force_px5", and "ground_torque_x5". After creating my grf.xml file, I compare it with the OpenSim subject01_walk_grf.xml, I found that both file are identical until describing the external force then the both file are completely different. As shown below, I copy and paste one part of each file to show the difference. I assume this why my model is sinking when I apply RRA and CMC.
Thanks
Abeer
my GRF.XML file
“”> -<PrescribedForce name="ExternalForce_1">
<!--Name of the body the force is applied to.-->
<body> calcn_r </body>
<!--Flag indicating whether the point (specified in pointFunctions) is in global frame-->
<pointIsGlobal> false </pointIsGlobal>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame-->
<forceIsGlobal> true </forceIsGlobal>
<!--Three functions describing the force to be applied.-->
-<FunctionSet name="forceFunctions"> -<objects> -<NaturalCubicSpline name="3_ground_force_vx"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 </y> </NaturalCubicSpline> -<NaturalCubicSpline name="3_ground_force_vy"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 0.00000000 </y> </NaturalCubicSpline> -<NaturalCubicSpline name="3_ground_force_vz"> <x> 2.01000000 2.02000000 2.03000000 2.04000000 2.05000000 2.06000000 2.07000000 2.08000000 2.09000000 2.10000000 </x> <y> -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 -0.00000000 </y> </NaturalCubicSpline>””
Subject01_walk_grf.xml
“”-<objects>
-<PrescribedForce name="ExternalForce_1">
<!--Name of the body the force is applied to.-->
<body> calcn_r </body>
<!--Flag indicating whether the point (specified in pointFunctions) is in global frame-->
<pointIsGlobal> false </pointIsGlobal>
<!--Flag indicating whether the quantities (specified in force/torqueFunctions) is in global frame-->
<forceIsGlobal> true </forceIsGlobal>
<!--Three functions describing the force to be applied.-->
-<FunctionSet name="forceFunctions"> -<objects> -<GCVSpline name="#1">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x> <y> </y> <weights> </weights> <coefficients> </coefficients> </GCVSpline>
-<GCVSpline name="#2">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x> <y> </y> <weights> </weights> <coefficients> </coefficients> </GCVSpline>
-<GCVSpline name="#3">
<half_order> 0 </half_order> <error_variance> 0.00000000000000000000 </error_variance> <x> </x>””