How to get the kinematic information of any marked point through opensim
- wuhaohao wuhaoaho
- Posts: 4
- Joined: Thu Sep 24, 2020 3:55 am
How to get the kinematic information of any marked point through opensim
Hello, I'd like to ask how to build a set of marked points under any human model, and then get the kinematic information (position, velocity, acceleration) of these marked points through one of the analysis tools?
- Attachments
-
- 48991B02-88CE-4897-9B54-3EFE18283B71.png (29.88 KiB) Viewed 669 times
Tags:
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: How to get the kinematic information of any marked point through opensim
I think you're looking for the PointKinematics Analysis (https://simtk.org/api_docs/opensim/api_ ... atics.html).
- wuhaohao wuhaoaho
- Posts: 4
- Joined: Thu Sep 24, 2020 3:55 am
Re: How to get the kinematic information of any marked point through opensim
Thank you very much for your answer. The link you replied to is the source code of point kinematics, I'm sorry, because my programming ability is limited, I can't understand it, How to use the PointKinematics tool in opensim?
- Thomas Uchida
- Posts: 1793
- Joined: Wed May 16, 2012 11:40 am
Re: How to get the kinematic information of any marked point through opensim
The PointKinematics Analysis is used in a similar way as the other analyses. Please refer to the following pages in the User's Guide:
- "Getting Started with Analyses": https://simtk-confluence.stanford.edu/d ... h+Analyses
- "How to Use the Analysis Tool": https://simtk-confluence.stanford.edu/d ... lysis+Tool
Here is a brief description for the PointKinematics Analysis specifically, using the arm26 model as an example:
- open the model
- select "Analyze" from the Tools menu
- provide a motion or states file (e.g., ...\Arm26\OutputReference\InverseKinematics\arm26_InverseKinematics.mot)
- in the "Analyses" tab, click "Add" and then "PointKinematics"
- "PointKinematics" will now appear in the list; select it and click "Edit"
- if you want to compute the position, velocity, and acceleration of the "r_radius_styloid" marker, for example, note that its parent body is "r_ulna_radius_hand" and it is located at (-0.0011 -0.23559 0.0943) on this body -- so set "body_name" to "r_ulna_radius_hand", set "relative_to_body_name" to "ground" (assuming you want to compute the position, velocity, and acceleration of the marker relative to the global or "ground" frame), and set the three coordinates of the "point" ([0], [1], and [2]) to -0.0011, -0.23559, and 0.0943, respectively
- run the analysis and plot the results from the generated files
- "Getting Started with Analyses": https://simtk-confluence.stanford.edu/d ... h+Analyses
- "How to Use the Analysis Tool": https://simtk-confluence.stanford.edu/d ... lysis+Tool
Here is a brief description for the PointKinematics Analysis specifically, using the arm26 model as an example:
- open the model
- select "Analyze" from the Tools menu
- provide a motion or states file (e.g., ...\Arm26\OutputReference\InverseKinematics\arm26_InverseKinematics.mot)
- in the "Analyses" tab, click "Add" and then "PointKinematics"
- "PointKinematics" will now appear in the list; select it and click "Edit"
- if you want to compute the position, velocity, and acceleration of the "r_radius_styloid" marker, for example, note that its parent body is "r_ulna_radius_hand" and it is located at (-0.0011 -0.23559 0.0943) on this body -- so set "body_name" to "r_ulna_radius_hand", set "relative_to_body_name" to "ground" (assuming you want to compute the position, velocity, and acceleration of the marker relative to the global or "ground" frame), and set the three coordinates of the "point" ([0], [1], and [2]) to -0.0011, -0.23559, and 0.0943, respectively
- run the analysis and plot the results from the generated files
- wuhaohao wuhaoaho
- Posts: 4
- Joined: Thu Sep 24, 2020 3:55 am
Re: How to get the kinematic information of any marked point through opensim
Thank you for your answer, here can realize the point kinematics analysis of each required mark point, can I get the kinematics information of multiple mark points?
- Alexandra Dunning
- Posts: 6
- Joined: Wed Aug 31, 2022 7:29 pm
Re: How to get the kinematic information of any marked point through opensim
Hi Thomas, do you know how to get the coordinates (x,y,z) to input into the 3 positions in the point kinematics tool? Thanks