visual3d:documentation:modeling:virtual_lab:virtual_lab_direction_of_progression_method_2
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:modeling:virtual_lab:virtual_lab_direction_of_progression_method_2 [2024/06/26 20:04] – removed sgranger | visual3d:documentation:modeling:virtual_lab:virtual_lab_direction_of_progression_method_2 [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Virtual Lab Direction of Progression Method 2 ====== | ||
+ | |||
+ | This script is explained in the Virtual Lab Direction of Progression tutorial. This script outlines [[Visual3D: | ||
+ | |||
+ | Before running this script: | ||
+ | |||
+ | * A static trial must be loaded into the workspace | ||
+ | * A model template (with modified virtual lab) must be loaded into the workspace | ||
+ | * A dynamic trial must be loaded into the workspace | ||
+ | |||
+ | NOTE: A modified virtual lab follows the same outline as the [[Visual3D: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | < | ||
+ | **__Add_a_Comment__** | ||
+ | ! /COMMENT= 1. Get the initial position of the origin of the pelvis (RPVo) | ||
+ | ; | ||
+ | |||
+ | ! Get the position of the pelvis at the start of the trial | ||
+ | |||
+ | Event_Explicit | ||
+ | / | ||
+ | /FRAME=20 | ||
+ | ! /TIME= | ||
+ | ; | ||
+ | |||
+ | Metric_Signal_Value_At_Event | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Project the pelvis location onto the floor | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Create a time based signal from the metric location of the projected pelvis | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | **__Add_a_Comment__** | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! 2. Create a vector from the origin of the pelvis that offset in the -Y direction of the lab (-Y) | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! 3. Project the pelvis origin onto the floor | ||
+ | |||
+ | Evaluate_Expression | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! 4. Calculate the angle between the origin of the pelvis at t=0, the -Y direction of the lab, and the direction of progression (DOP) at each time point in the trial | ||
+ | |||
+ | Compute_Planar_Angle | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! /NORMALX= | ||
+ | ! /NORMALY= | ||
+ | ! /NORMALZ= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! 5. Calculate the metric direction of progression based on the angle (Theta Y) between the direction of progression and the Y Axis | ||
+ | |||
+ | Metric_Median | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | **__Add_a_Comment__** | ||
+ | ! /COMMENT= Define the virtual lab based on theta Y | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Add_Landmark | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | /MCS_ML= - 0.1 * SIN ( ( 90 - &:: | ||
+ | /MCS_AP= - 0.1* COS ( ( 90 - &:: | ||
+ | / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Build_Model | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Recalc | ||
+ | |||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
visual3d/documentation/modeling/virtual_lab/virtual_lab_direction_of_progression_method_2.1719432277.txt.gz · Last modified: 2024/06/26 20:04 by sgranger