add_jump_events: Divide a jump into phases

View source: R/jump_functions.R

add_jump_eventsR Documentation

Divide a jump into phases

Description

add_jump_events uses average hip joint-center height and supplied events to divide a jump into 9 phases. This division is useful for further analyis of the individual phases in the jump. The numerical values in phase column correspond to:

  1. Descending phase of the preparation

  2. The deepest postion in the preparation phase

  3. The ascending phase of the preparation (push-off)

  4. Toe off - the last fase with contact between the feet and the ground

  5. Hang time.

  6. Impact

  7. Descending phase of the landing.

  8. Deepest position of the landing.

  9. Ascending phase of the landing.

Usage

add_jump_events(.data)

Arguments

.data

A tibble containing motioncapture data from a jump. The data must contain:

  • LHY and RHY columns containg global spatial joint-center positions of the left and right hip

  • A frame column

  • A marks column with values descring toe off events (TOL = toe off of left foot, TOR = toe off of right foot, TOB = toe off from both feet), and impact events (FFL = flat foot contact with left foot, FFR = flat foot contact with right foot, FFB = flat foot contact with both feet).

Value

The tibble supplied in the .data argument, with the added columns phase and jump_events

Examples

# Prepare data
df <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
df <- dplyr::select(df, frame, marks, LHY, RHY)

suppressMessages(add_jump_events(df))

# A plot displaying the phases
df2 <- dplyr::filter(mocapr::mocapr_data, movement_nr == 1)
df2 <- suppressMessages(add_jump_events(df2))

mocapr::animate_global(df2,
                       planes = "X",
                       remove_facet_labels = FALSE,
                       return_plot = TRUE,
                       col_facets = phase)

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