visual3d:documentation:kinematics_and_kinetics:opensim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
visual3d:documentation:kinematics_and_kinetics:opensim [2025/03/12 14:24] – wikisysop | visual3d:documentation:kinematics_and_kinetics:opensim [2025/03/12 14:25] (current) – wikisysop | ||
---|---|---|---|
Line 27: | Line 27: | ||
- | === Visual3D-to-OpenSim Inverse Kinematics === | + | ==== Visual3D-to-OpenSim Inverse Kinematics |
Visual3D’s ability to write OpenSim compatible .mot files is based on Visual3D’s own Inverse Kinetics algorithm. The theory behind the Visual3D to OpenSim Inverse Kinematics is a three stage process: | Visual3D’s ability to write OpenSim compatible .mot files is based on Visual3D’s own Inverse Kinetics algorithm. The theory behind the Visual3D to OpenSim Inverse Kinematics is a three stage process: | ||
Line 39: | Line 39: | ||
Visual3d does manual scaling on all segments and does its own IK, thus many of the OpenSim files related to the Marker Set, Scaling and IK are no longer required. | Visual3d does manual scaling on all segments and does its own IK, thus many of the OpenSim files related to the Marker Set, Scaling and IK are no longer required. | ||
- | === Model Scaling === | + | ==== Model Scaling |
Visual3D automatically scales the OpenSim model by: | Visual3D automatically scales the OpenSim model by: | ||
Line 56: | Line 56: | ||
| Torso, Calcaneus and Toes | Most users build their feet without markers at the very end of the foot and at the top of the head. Visual3D therefore uses the average thigh length to scale these segments. (Physical anthropometry studies have shown thigh length is a somewhat strongly correlated with height). | | | Torso, Calcaneus and Toes | Most users build their feet without markers at the very end of the foot and at the top of the head. Visual3D therefore uses the average thigh length to scale these segments. (Physical anthropometry studies have shown thigh length is a somewhat strongly correlated with height). | | ||
- | ==== Visual3D-to-OpenSim Exports ==== | + | ===== Visual3D-to-OpenSim Exports |
The Visual3D-to-OpenSim process is designed according to the OpenSim tutorial "Intro to Musculoskeletal Modeling" | The Visual3D-to-OpenSim process is designed according to the OpenSim tutorial "Intro to Musculoskeletal Modeling" | ||
Line 64: | Line 64: | ||
- [[Visual3D: | - [[Visual3D: | ||
- | === Correcting the Lumbar Tilt in the Exported Motion File === | + | ==== Correcting the Lumbar Tilt in the Exported Motion File ==== |
Visual3D' | Visual3D' | ||
- | === Exported Joint Angles === | + | ==== Exported Joint Angles |
The angles that are exported to OpenSim are slightly different than the angles calculated in Visual3D because the Inverse Kinematics model used in the Visual3D-to-OpenSim export is a special version of Visual3D' | The angles that are exported to OpenSim are slightly different than the angles calculated in Visual3D because the Inverse Kinematics model used in the Visual3D-to-OpenSim export is a special version of Visual3D' | ||
Line 80: | Line 80: | ||
If you look at the osim file you will see that the knee motion, the hip center location and the ankle/ | If you look at the osim file you will see that the knee motion, the hip center location and the ankle/ | ||
- | === Exported Force and Free Moment === | + | ==== Exported Force and Free Moment |
Visual3D exports the FORCE and FREEMOMENT signals that are found in the data tree. | Visual3D exports the FORCE and FREEMOMENT signals that are found in the data tree. | ||
- | === Exported Center of Pressure === | + | ==== Exported Center of Pressure |
After the Inverse Kinematics (IK) fit, the entire model could move relative to the center of pressure thus leaving the IK fit with a significant effect on the moments at the ankle, knee and hip. To counteract this Visual3D first computes and stores the local coordinates of the center of pressure in the foot coordinate system (pre-IK) whenever a foot is in contact with the plate. Then after the IK fit is complete Visual3D retrieves the pre-IK coordinates of the COP and transforms them from the post-IK foot coordinate system into lab space. Thus if the vertical component of the COP in the output .mot file you will not lie flat along the floor (or treadmill); however if look at the distance from the center of pressure to the ankle in OpenSim it should look OK. (Remember the model itself can move up and down in OpenSim, so the location of the COP under the foot is what matters not the COP coordinates in lab space.) | After the Inverse Kinematics (IK) fit, the entire model could move relative to the center of pressure thus leaving the IK fit with a significant effect on the moments at the ankle, knee and hip. To counteract this Visual3D first computes and stores the local coordinates of the center of pressure in the foot coordinate system (pre-IK) whenever a foot is in contact with the plate. Then after the IK fit is complete Visual3D retrieves the pre-IK coordinates of the COP and transforms them from the post-IK foot coordinate system into lab space. Thus if the vertical component of the COP in the output .mot file you will not lie flat along the floor (or treadmill); however if look at the distance from the center of pressure to the ankle in OpenSim it should look OK. (Remember the model itself can move up and down in OpenSim, so the location of the COP under the foot is what matters not the COP coordinates in lab space.) | ||
- | === Exporting Other Models === | + | ==== Exporting Other Models |
Visual3D' | Visual3D' | ||
- | === Comparing Visual3D and SIMM exporting to OpenSim === | + | ==== Comparing Visual3D and SIMM exporting to OpenSim |
Visual3D and SIMM each accomplish a different task. You can think of the process of generating muscle driving simulations in OpenSim as occurring in three steps: | Visual3D and SIMM each accomplish a different task. You can think of the process of generating muscle driving simulations in OpenSim as occurring in three steps: | ||
Line 104: | Line 104: | ||
Visual3D comes in at step 2. Visual3D is not required for step 2 especially if you are using the default Open marker set; however if you deviate from the expected marker set then importing the motion capture and force plate data into OpenSim can be a very cumbersome process. Visual3D will also allow you to do many, many more standard kinematic and kinetic analyses from your motion capture data then are available in OpenSim. In short Visual3D will quickly export walking and running data into OpenSim while simultaneously providing you with a large number of kinematic, kinetic and data analysis tools. | Visual3D comes in at step 2. Visual3D is not required for step 2 especially if you are using the default Open marker set; however if you deviate from the expected marker set then importing the motion capture and force plate data into OpenSim can be a very cumbersome process. Visual3D will also allow you to do many, many more standard kinematic and kinetic analyses from your motion capture data then are available in OpenSim. In short Visual3D will quickly export walking and running data into OpenSim while simultaneously providing you with a large number of kinematic, kinetic and data analysis tools. | ||
- | === OpenSim Joint Moments and Joint Load === | + | ==== OpenSim Joint Moments and Joint Load ==== |
You can get the Inverse Dynamics directly out of OpenSim using the " | You can get the Inverse Dynamics directly out of OpenSim using the " | ||
Line 110: | Line 110: | ||
**NOTE**: Before running OpenSim' | **NOTE**: Before running OpenSim' | ||
- | ==== Compatibility ==== | + | ===== Compatibility |
- Visual3D v4.0 - The basic Visual3D-to-OpenSim integration is available. | - Visual3D v4.0 - The basic Visual3D-to-OpenSim integration is available. | ||
Line 121: | Line 121: | ||
- OpenSim 4.0 - IOpening (File -> Load Motion) the Visual3d_SIMM_input.mot file in previous versions of OpenSim loaded the states and ground reaction data were applied. As of OpenSim 4.0, you need to load the Visual3d_SIMM_input.mot file, then [[https:// | - OpenSim 4.0 - IOpening (File -> Load Motion) the Visual3d_SIMM_input.mot file in previous versions of OpenSim loaded the states and ground reaction data were applied. As of OpenSim 4.0, you need to load the Visual3d_SIMM_input.mot file, then [[https:// | ||
- | === Example === | + | ==== Example |
An example of this export process can be found [[Visual3D: | An example of this export process can be found [[Visual3D: | ||
visual3d/documentation/kinematics_and_kinetics/opensim.1741789457.txt.gz · Last modified: 2025/03/12 14:24 by wikisysop