project_single_joint_to_AP: project_single_joint_to_AP()

View source: R/projection_functions.R

project_single_joint_to_APR Documentation

project_single_joint_to_AP()

Description

project_single_joint_to_AP() takes the global 3D coordinates of a single joint and project these coordinates onto the anatomical planes of the subject (the frontal and the sagital plane). The frontal plane is defined as the plane between the two hip joint centers that is perpendicular to the floor. The sagital plane is perpendicular to the frontal and floor plane.
As the subject moves the anatomical planes will change with each frame as the pose of the subject changes. This is different to the movement planes created by the project_single_joint_to_MP() function where the planes stay the same througout the movement. Please see the GitHub README.me for a more detailed description.

Usage

project_single_joint_to_AP(.data, Y, X, Z, New_Name = "New")

Arguments

.data

A tibble containing the global 3D positions of the joints 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 frontal plane

X

The name of the global X coordinate column of the joint you wish to project to the frontal plane

Z

The name of the global Z coordinate column of the joint you wish to project to the frontal 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

Value

A tibble containing two columns with coordinates in the right and up direction. The variables are named '"New_Name"_FPR' and '"New_Name"_FPU'

Examples

df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
project_single_joint_to_AP(df, Y=LSY, X=LSX, Z=LSZ, New_Name = "LS")

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