analyse_angular_momentum_com: Analyse Angular Momentum for a Model

View source: R/analyse_angular_momentum_com.R

analyse_angular_momentum_comR Documentation

Analyse Angular Momentum for a Model

Description

This function computes the segmental angular momentum about the centre of mass of a body model based on position and velocity kinematics over time, returning the results or saving them to a file.

Usage

analyse_angular_momentum_com(
  model_file = "Model_SCALED.osim",
  body_pos_file = "Model_scaled_BodyKinematics_pos_global.sto",
  body_vel_file = "Model_scaled_BodyKinematics_vel_global.sto",
  file_output = "angular_momentum.sto",
  in_degrees = TRUE,
  write_file = TRUE,
  return_object = FALSE
)

Arguments

model_file

A string specifying the model file (in .osim format).

body_pos_file

A string specifying the body position file (in .sto format).

body_vel_file

A string specifying the body velocity file (in .sto format).

file_output

A string specifying the output file for the angular momentum results.

in_degrees

Logical; if TRUE, input angles and velocities are assumed to be in degrees. Defaults to TRUE.

write_file

Logical; if TRUE, the function writes results to a file. Defaults to TRUE.

return_object

Logical; if TRUE, the function returns the computed angular momentum as a data frame.

Value

If return_object = TRUE, a data frame containing the angular momentum values for each body at each time step.


Kneerav/biomechanics documentation built on July 16, 2025, 4:51 p.m.