View source: R/analyse_angular_momentum_com.R
analyse_angular_momentum_com | R Documentation |
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.
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
)
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. |
If return_object = TRUE, a data frame containing the angular momentum values for each body at each time step.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.