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 for a more detailed description.

Usage

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

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?

distance_threshold

Used only when .method = "first_last". If the distance between first and last frame is much shorter than the max distance from the first frame, a warning will be given. Default is 2.

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 June 10, 2025, 11:55 a.m.