visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt [2024/06/19 12:51] – sgranger | visual3d:documentation:pipeline:model_based_data_commands:angular_momentum_pt [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | {{{{{{\\ | + | ====== ANGULAR MOMENTUM PT ====== |
+ | \\ | ||
- | ====== angular momentum ====== | ||
- | it is important to note that the total body angular momentum is not calculated by summing the [[visual3d: | + | ===== Angular Momentum ===== |
- | ===== angular momentum: about segment center of mass ===== | + | It is important to note that the total body angular momentum |
- | visual3d' | + | ==== Angular Momentum: About Segment Center |
- | **angular momentum | + | Visual3D' |
+ | **Angular momentum about a segment' | ||
- | | segmentangularmomentumexpression.jpg | ||
- | ===== angular momentum: about total body center of mass ===== | + | | {{:SegmentAngularMomentumExpression.jpg}} |
- | **angular momentum about the total body center of mass is:**\\ | + | ==== 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 | + | **NOTE:** Angular |
- | ====== | + | |{{: |
- | ===== inroduction | + | ===== Example Script |
- | **to calculate the angular momentum about a point (such as the model center of mass):** | + | ==== Inroduction ==== |
- | - compute r | + | **To calculate |
- | - compute mv | + | |
- | - compute r x mv | + | |
- | - compute | + | |
- | - compute iw * (r x mv) | + | |
- | ===== script ===== | + | - Compute r |
+ | - Compute mv | ||
+ | - Compute r x mv | ||
+ | - Compute the angular momentum of the segment using the [[Visual3D: | ||
+ | - Compute Iw * (r x mv) | ||
- | this script and sample cmo files can be downloaded [[https:// | + | ==== Script ==== |
- | the following | + | This script |
- | this script calculates the angular momentum **for each of the listed segments** (rft+rsk+rth+lft+lsk+lth+rpv).\\ | + | 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 " |
+ | |||
+ | 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 | + | 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 |
< | < | ||
- | first_derivative | + | First_Derivative |
- | /signal_types=kinetic_kinematic | + | /SIGNAL_TYPES=KINETIC_KINEMATIC |
- | /signal_folder=model | + | /SIGNAL_FOLDER=Model |
- | /signal_names=centerofmass | + | /SIGNAL_NAMES=CenterOfMass |
- | /result_types=derived | + | /RESULT_TYPES=DERIVED |
- | /result_folder=com | + | /RESULT_FOLDER=COM |
- | ! /result_names= | + | ! /RESULT_NAMES= |
- | /result_suffix=_vel | + | /RESULT_SUFFIX=_VEL |
; | ; | ||
</ | </ | ||
< | < | ||
- | for_each | + | For_Each |
- | /iteration_parameter_name=seg_name | + | /ITERATION_PARAMETER_NAME=SEG_NAME |
- | /items=rft+rsk+rth+lft+lsk+lth+rpv | + | /ITEMS=RFT+RSK+RTH+LFT+LSK+LTH+RPV |
; | ; | ||
- | ! compute the r for (r x mv) | + | ! compute the R for (r x mv) |
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=vector((kinetic_kinematic::&::seg_name& ::cgpos::x - kinetic_kinematic::model::centerofmass::x ), | + | /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::Y - KINETIC_KINEMATIC::MODEL::CenterOfMass::Y), |
- | (kinetic_kinematic::&::seg_name& ::cgpos::z - kinetic_kinematic::model::centerofmass::z)) | + | (Kinetic_Kinematic::&::SEG_NAME& ::CGPos::Z - KINETIC_KINEMATIC::MODEL::CenterOfMass::Z)) |
- | /result_name=::seg_name&_r | + | /RESULT_NAME=::SEG_NAME&_R |
- | ! /result_type=derived | + | ! /RESULT_TYPE=DERIVED |
- | ! /result_folder=processed | + | ! /RESULT_FOLDER=PROCESSED |
; | ; | ||
! compute mv | ! compute mv | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=(model::segment::&::seg_name&:&: | + | /EXPRESSION=(MODEL::SEGMENT::&::SEG_NAME&:&: |
- | /result_name=::seg_name&_mv | + | /RESULT_NAME=::SEG_NAME&_mv |
- | ! /result_type=derived | + | ! /RESULT_TYPE=DERIVED |
- | ! /result_folder=processed | + | ! /RESULT_FOLDER=PROCESSED |
; | ; | ||
! compute rxmv | ! compute rxmv | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=cross(derived::processed::&::seg_name&_r, derived::processed::&::seg_name&_mv) | + | /EXPRESSION=cross(DERIVED::PROCESSED::&::SEG_NAME&_R, DERIVED::PROCESSED::&::SEG_NAME&_mv) |
- | /result_name=::seg_name& | + | /RESULT_NAME=::SEG_NAME& |
- | ! /result_type=derived | + | ! /RESULT_TYPE=DERIVED |
- | ! /result_folder=processed | + | ! /RESULT_FOLDER=PROCESSED |
; | ; | ||
- | compute_model_based_data | + | Compute_Model_Based_Data |
- | /result_name=::seg_name&_iw | + | /RESULT_NAME=::SEG_NAME&_IW |
- | /function=angular_momentum | + | /FUNCTION=ANGULAR_MOMENTUM |
- | /segment=::seg_name | + | /SEGMENT=::SEG_NAME |
- | /reference_segment=lab | + | /REFERENCE_SEGMENT=LAB |
- | ! /resolution_coordinate_system=lab | + | ! /RESOLUTION_COORDINATE_SYSTEM=LAB |
- | ! /use_cardan_sequence=false | + | ! /USE_CARDAN_SEQUENCE=FALSE |
- | ! /normalization=false | + | ! /NORMALIZATION=FALSE |
- | ! /normalization_method= | + | ! /NORMALIZATION_METHOD= |
- | ! /normalization_metric= | + | ! /NORMALIZATION_METRIC= |
- | ! /negatex=false | + | ! /NEGATEX=FALSE |
- | ! /negatey=false | + | ! /NEGATEY=FALSE |
- | ! /negatez=false | + | ! /NEGATEZ=FALSE |
- | ! /axis1=x | + | ! /AXIS1=X |
- | ! /axis2=y | + | ! /AXIS2=Y |
- | ! /axis3=z | + | ! /AXIS3=Z |
; | ; | ||
! compute rxmv | ! compute rxmv | ||
- | evaluate_expression | + | Evaluate_Expression |
- | /expression=link_model_based::original::&::seg_name&_iw + derived::processed::&::seg_name& | + | /EXPRESSION=LINK_MODEL_BASED::ORIGINAL::&::SEG_NAME&_IW + DERIVED::PROCESSED::&::SEG_NAME& |
- | /result_name=::seg_name&_iw | + | /RESULT_NAME=::SEG_NAME&_IW |
- | /result_type=derived | + | /RESULT_TYPE=DERIVED |
- | /result_folder=momentum_contribution | + | /RESULT_FOLDER=Momentum_Contribution |
; | ; | ||
- | end_for_each | + | End_For_Each |
- | /iteration_parameter_name=seg_name | + | /ITERATION_PARAMETER_NAME=SEG_NAME |
; | ; | ||
</ | </ | ||
- | }}}}}} | + |
visual3d/documentation/pipeline/model_based_data_commands/angular_momentum_pt.1718801495.txt.gz · Last modified: 2024/06/19 12:51 by sgranger