project_full_body_to_MP: Project global joint positions to the planes of the movement

View source: R/projection_functions.R

project_full_body_to_MPR Documentation

Project global joint positions to the planes of the movement

Description

project_full_body_to_MP() uses project_single_joint_to_MP() to project a pre-specified collection of joint centers onto the movement planes of the subject. The pre-specified joint centers are the following from the left and right side: toe, ankle, knee, hip, wrist, elbow, and shoulder. Please see the GitHub README.md fpr a more detailed description.

Usage

project_full_body_to_MP(.data, .method = "first_last")

Arguments

.data

A tibble containing 3D positions of the following left and right joints: toe, ankle, knee, hip, wrist, elbow, and shoulder

.method

Must be one of c("first_last", "first_dist").
What method shall be used to create the projection?

  • first_last the projection will be created by using the first and the last frame of the recording.

  • first_dist the projection will use the first frame and the frame where the position of the subject is furthest away from the position of the subject in the first frame.

Value

A tibble with the positions of the pre-specied joint-centers in the movement planes.

Examples

df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
project_full_body_to_MP(df)

steenharsted/mocapr documentation built on Feb. 1, 2024, 1:49 p.m.