Analyse Angular Momentum for a Model
Source:R/analyse_angular_momentum_com_file.R
analyse_angular_momentum_com_file.Rd
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_file(
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.