Documentation Site Map Main Page Reference List Motion Capture Visual3D Overview Visual3D Installation License Activation Getting Started Visual3D Documentation Overview Pipeline Commands Reference Expressions Overview CalTester Mode Overview List of Tutorials Visual3D Examples Overview Troubleshooting Sift Sift Overview Installation Getting Started Sift Documentation Overview Knowledge Discovery for Biomechanical Data Tutorial Overview Troubleshooting Inspect3D Inspect3D Overview Inspect3D Installation Overview Inspect3D Getting Started Overview Inspect3D Documentation Overview Knowledge Discovery in Inspect3D Inspect3D Tutorials Overview Troubleshooting DSX Suite DSX Overview DSX Definitions DSX Suite Installation DSX Tutorials DSX Release Notes xManager Overview PlanDSX Overview Surface3D Overview Orient3D Overview CalibrateDSX Overview Locate3D Overview X4D Overview
This is an old revision of the document!
angular_momentum]] for each calculated by the compute model based command. the [[visual3d:documentation:pipeline:model_based_data_commands:angular_momentum|angular_momentum]] command calculates the angular momentum about each segment's center of mass, to calculate the total body angular momentum you must calculate the angular momentum for each segment about the same axis, such as the total body center of mass. the equations in the [[#angular_momentum:_about_total_body_center_of_mass|about total body center of mass]] section describe how to do this. ===== angular momentum: about segment center of mass ===== visual3d's built in [[visual3d:documentation:pipeline:model_based_data_commands:angular_momentum|angular_momentum]] command calculates the angular momentum of a segment about the segment's center of mass, but angular momentum can also be calculated about a different point in space. **angular momentum about a segment's center of mass is:**\\ | segmentangularmomentumexpression.jpg | ===== angular momentum: about total body center of mass ===== **angular momentum about the total body center of mass is:**\\ **note:** angular momentum for the whole body about the total body center of mass is just the summation of the angular momentum of **each** segment about the total body center of mass. |segmentangularmomentum_aboutapoint_eq.png\\ \\ //iw// = angular momentum of the segment\\ \\ \\ //i// = moment of inertia\\ \\ //w// = angular velocity\\ \\ //r// = distance from the total body center of mass to the segment's center of mass\\ //m// = mass of the segment\\ //v// = translational velocity\\ |segmentangularmomentum_aboutapoint.png | ====== example script ====== ===== inroduction ===== **to calculate the angular momentum about a point (such as the model center of mass):** - compute r - compute mv - compute r x mv - compute the angular momentum of the segment using the [[visual3d:documentation:pipeline:model_based_data_commands:angular_momentum|angular momentum]] command - compute iw * (r x mv) ===== script ===== this script and sample cmo files can be downloaded [[https://www.has-motion.com/download/examples/angularmomentum/angularmomentum_aboutapoint.zip|here]]. the download also contains a pdf file with the angular momentum equations. the following script computes the angular momentum about the total body center of mass, if the user would like to calculate angular momentum about a different point, specify the desired signal in place of "kinetic_kinematic::model::centerofmass". this script calculates the angular momentum **for each of the listed segments** (rft+rsk+rth+lft+lsk+lth+rpv).\\ \\ if the user would like to calculate the **total body angular momentum about the model center of mass**, the resulting signals from the last evaluate expression command for all segments should be summed together. if you would like to calculate the total body angular momentum, you can use the [[visual3d:documentation:pipeline:signal_commands:add_signals|add_signals]] command after the end_for_each. <code> first_derivative /signal_types=kinetic_kinematic /signal_folder=model /signal_names=centerofmass /result_types=derived /result_folder=com ! /result_names= /result_suffix=_vel ; </code> <code> for_each /iteration_parameter_name=seg_name /items=rft+rsk+rth+lft+lsk+lth+rpv ; ! compute the r for (r x mv) evaluate_expression /expression=vector((kinetic_kinematic::&::seg_name& ::cgpos::x - kinetic_kinematic::model::centerofmass::x ), (kinetic_kinematic::&::seg_name& ::cgpos::y - kinetic_kinematic::model::centerofmass::y), (kinetic_kinematic::&::seg_name& ::cgpos::z - kinetic_kinematic::model::centerofmass::z)) /result_name=::seg_name&_r ! /result_type=derived ! /result_folder=processed ; ! compute mv evaluate_expression /expression=(model::segment::&::seg_name&:&:mass)*(kinetic_kinematic::&::seg_name& ::cgvel - derived::com::centerofmass_vel ) /result_name=::seg_name&_mv ! /result_type=derived ! /result_folder=processed ; ! compute rxmv evaluate_expression /expression=cross(derived::processed::&::seg_name&_r, derived::processed::&::seg_name&_mv) /result_name=::seg_name&_rxmv ! /result_type=derived ! /result_folder=processed ; compute_model_based_data /result_name=::seg_name&_iw /function=angular_momentum /segment=::seg_name /reference_segment=lab ! /resolution_coordinate_system=lab ! /use_cardan_sequence=false ! /normalization=false ! /normalization_method= ! /normalization_metric= ! /negatex=false ! /negatey=false ! /negatez=false ! /axis1=x ! /axis2=y ! /axis3=z ; ! compute rxmv evaluate_expression /expression=link_model_based::original::&::seg_name&_iw + derived::processed::&::seg_name&_rxmv /result_name=::seg_name&_iw /result_type=derived /result_folder=momentum_contribution ; end_for_each /iteration_parameter_name=seg_name ; </code> }}}}