View source: R/projection_functions.R
project_single_joint_to_MP | R Documentation |
project_single_joint_to_MP() projects the global joint center positions of a single joint onto the movement planes (MP). MP is calculated by first creating a direction going from
the position of the hip joint centers at the first frame to the position of the hip joint centers at the last frame.
Please see the GitHub README.me for a
more in-depth explanation.
project_single_joint_to_MP(
.data,
Y,
X,
Z,
New_Name = "New",
.method = "first_last"
)
.data |
A tibble containing the global 3D positions of the joint given in the parameters X, Y, Z and the 3D positions of both hip joints. |
Y |
The name of the global Y coordinate column (up direction) of the joint you wish to project to the movement plane |
X |
The name of the global X coordinate column of the joint you wish to project to the movement plane |
Z |
The name of the global Z coordinate column of the joint you wish to project to the movement plane |
New_Name |
The abreviated name of the new joint, the name of the returned variables will start with the value given in New_Name |
.method |
Must be one of
|
A tibble containig three columns with coordinates in the forward, up, and right direction. The variables are named '"New_Name"_MPF', '"New_Name"_MPU' and '"New_Name"_MPR'
df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
project_single_joint_to_MP(df, Y=LSY, X=LSX, Z=LSZ, New_Name = "LS")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.