some question on scaling and IK in Opensim
Posted: Wed Apr 30, 2014 10:35 am
Hi Everyone,
We are now using OpenSim to solve inverse kinematics problem for our current project. I carefully read the user guide and follow the user guide step by step. After spending several days on tuning parameters such as markers placement, scale factors and weights, I got an IK result for my walking data. The result looks fine but does not always match the Mocap data well (in some frames). Since I am new to OpenSim, I am not quiet sure whether I correctly use OpenSim tools to scale model and solve inverse kinematics for Mocap data. I have some questions in using the tools.
Here is what I do:
Basically I have got Mocap data from Vicon and exported marker trajectories as trc files (including a static T-pose and a walking motion) and then I use the “3DGaitModel2354” model to do inverse kinematics in OpenSim. Because virtual markers defined in “3DGaitModel2354” and our Mocap markers do not agree, I deleted all virtual markers and added new markers manually according to the Mocap data. In the scaling step I tried both measurement factors and manually set factors and their combination and in inverse kinematics step I set the weights by hand.
My questions are:
1. If I download a model with no virtual markers included, should I add markers manually? Are there any standards or rules on how to place virtual markers? Or it is recommended to add and edit markers according to the markers of Vicon Mocap data?
2. How does the model scaling work? I mean if I scale the humerus, ulna and radius with different scaling factors (e.g, they are scaled by factors 1.0, 1.3 and 1.4 respectively), what does OpenSim do to keep the joint well articulated? How does OpenSim define the scaled kinematics (the rotation axis, pivot)?
3. How to set the weights when doing scaling and inverse kinematics? I saw in some examples a few weights are set to 1000.00 and others are 1.0. Are there some rules of thumb to set these weights?
Thank you for your help,
regards!
We are now using OpenSim to solve inverse kinematics problem for our current project. I carefully read the user guide and follow the user guide step by step. After spending several days on tuning parameters such as markers placement, scale factors and weights, I got an IK result for my walking data. The result looks fine but does not always match the Mocap data well (in some frames). Since I am new to OpenSim, I am not quiet sure whether I correctly use OpenSim tools to scale model and solve inverse kinematics for Mocap data. I have some questions in using the tools.
Here is what I do:
Basically I have got Mocap data from Vicon and exported marker trajectories as trc files (including a static T-pose and a walking motion) and then I use the “3DGaitModel2354” model to do inverse kinematics in OpenSim. Because virtual markers defined in “3DGaitModel2354” and our Mocap markers do not agree, I deleted all virtual markers and added new markers manually according to the Mocap data. In the scaling step I tried both measurement factors and manually set factors and their combination and in inverse kinematics step I set the weights by hand.
My questions are:
1. If I download a model with no virtual markers included, should I add markers manually? Are there any standards or rules on how to place virtual markers? Or it is recommended to add and edit markers according to the markers of Vicon Mocap data?
2. How does the model scaling work? I mean if I scale the humerus, ulna and radius with different scaling factors (e.g, they are scaled by factors 1.0, 1.3 and 1.4 respectively), what does OpenSim do to keep the joint well articulated? How does OpenSim define the scaled kinematics (the rotation axis, pivot)?
3. How to set the weights when doing scaling and inverse kinematics? I saw in some examples a few weights are set to 1000.00 and others are 1.0. Are there some rules of thumb to set these weights?
Thank you for your help,
regards!