visual3d:documentation:pipeline:model_commands:modeling_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:model_commands:modeling_commands [2024/06/26 20:06] – removed sgranger | visual3d:documentation:pipeline:model_commands:modeling_commands [2024/07/17 15:46] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Modeling Commands ====== | ||
+ | |||
+ | This page lists several pipeline commands related to modeling. In addition, two examples are presented. | ||
+ | |||
+ | ==== Commands ==== | ||
+ | |||
+ | The commands related to modeling are listed here along with a description of their parameters. The list is not all inclusive. | ||
+ | |||
+ | === Add_Landmark === | ||
+ | |||
+ | Landmarks (Virtual Markers) are typically added to the model template, but all model commands are also available as pipeline commands. | ||
+ | |||
+ | === Add_Functional_Joint_Landmark === | ||
+ | |||
+ | This command is based on: **Schwartz MH, Rozumalski A** (2005) A new method for estimating joint parameters from motion data. Journal of Biomechanics, | ||
+ | |||
+ | |**Add_Functional_Joint_Landmark** | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |**/ | ||
+ | |||
+ | This command was changed for Visual3D Version 3.83 to allow the specification of **REFERENCE MARKERS** instead of **REFERENCE SEGMENT**. | ||
+ | |||
+ | * If a Reference Segment is specified, the landmark will be created relative to that segment. | ||
+ | * If no Reference Segment is specified, the landmark will be created relative to the first three REFERENCE MARKERS (e.g. a Technical Coordinate System will be created from these markers). If more than 3 REFERENCE MARKERS are specified, Visual3D will use all REFERENCE MARKERS to track the Technical Coordinate System. | ||
+ | |||
+ | === Create_V3D_Model === | ||
+ | |||
+ | Create a Visual3D 6 degree of freedom model. This is the legacy Visual3D model which was developed in collaboration with the National Institutes of Health, Physical Disabilities Branch. It is currently considered a legacy model because all of the features of this model are incorporated in the Visual3D hybrid model. | ||
+ | |||
+ | < | ||
+ | Create_V3D_Model | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **Note: Wildcards (*) can be used for the Calibration_File name** | ||
+ | |||
+ | === Build_Model === | ||
+ | |||
+ | In some circumstances Visual3D does not automatically rebuild the model. For example, landmarks that have been added by a script command do not automatically rebuild the model because sometimes there may be several landmark commands in sequence and rebuilding the model would slow done the processing of the pipeline. The command **Build_Model** will build the model. | ||
+ | |||
+ | < | ||
+ | Build_Model | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Apply_Model_Template === | ||
+ | |||
+ | Apply a Model Template to a Model (Calibration File). | ||
+ | |||
+ | < | ||
+ | Apply_Model_Template | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE:** Wildcards (*) can be used for FILE_NAME and MODEL_NAME. | ||
+ | |||
+ | **NOTE:** In early versions of Visual3D, this command was called **OPEN_MODEL_FILE**. Even though this name no longer appears in the pipeline dialog, if it appears in the Pipeline Script, it will still be recognized and processed correctly by Visual3D. | ||
+ | |||
+ | === Save_Model_Template === | ||
+ | |||
+ | This command saves the specified link model to a template. | ||
+ | |||
+ | < | ||
+ | Save_Model_Template | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE:** You can use a wildcard for the calibration_file but you must specify the full model template name. | ||
+ | |||
+ | An example, | ||
+ | |||
+ | < | ||
+ | Save_Model_Template | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Close_Calibration_File === | ||
+ | |||
+ | Close an open model and calibration file. | ||
+ | |||
+ | < | ||
+ | Close_Calibration_File | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Set_Segment_Properties === | ||
+ | |||
+ | Sets the inertial properties of a segment. The command allows the user to set the variable value as an expression. For example, the mass could be represented as: | ||
+ | |||
+ | / | ||
+ | |||
+ | where Mass is a subject property that has already been defined. The user can set one or all of the properties with this command (a blank entry is ignored). | ||
+ | |||
+ | < | ||
+ | Set_Segment_Properties | ||
+ | / | ||
+ | / | ||
+ | ! / | ||
+ | ! /MASS= | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Set_Subject_Weight === | ||
+ | |||
+ | Set the weight of the subject (kgs). If no LINK_MODEL (Calibration File) is specified, the current model is used. If no Weight is specified, a dialog pops up. | ||
+ | |||
+ | < | ||
+ | Set_Subject_Weight | ||
+ | / | ||
+ | /Weight= Weight | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE:** If the model is a hybrid model, the Weight parameter can be an expression (e.g. a Model Metric). | ||
+ | |||
+ | For example, the user enters the Weight of the subject in pounds using a pipeline parameter. This can be converted to Newtons for the model. | ||
+ | |||
+ | < | ||
+ | Prompt_For_Pipeline_Parameter_Value | ||
+ | / | ||
+ | /PROMPT= Enter the Weight of the Subject in Pounds | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Subject_Weight | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Set_Subject_Height === | ||
+ | |||
+ | Set the height of the subject (m). If no LINK_MODEL (Calibration File) is specified, the current model is used. If no Height is specified, a dialog pops up. | ||
+ | |||
+ | < | ||
+ | Set_Subject_Height | ||
+ | / | ||
+ | /Height= Height | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE:** If the model is a hybrid model, the Height parameter can be an expression (e.g. a Model Metric). | ||
+ | |||
+ | For example, the user enters the Height of the subject in inches using a pipeline parameter. This can be converted to meters for the model. | ||
+ | |||
+ | < | ||
+ | Prompt_For_Pipeline_Parameter_Value | ||
+ | / | ||
+ | /PROMPT= Enter the Height of the Subject in Inches | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Subject_Height | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Set_Model_Metric === | ||
+ | |||
+ | This command was originally part of the model template in Visual3D. In version 4.0 this command will be expanded for general use. This is a convenient way for the user to interact with the model by entering values in a popup dialog rather than by editing the model in model builder mode. This command is a good way to add in a metric that is used in your model. | ||
+ | |||
+ | The following example will set the proximal radius for the right thigh segment to 0.1 | ||
+ | |||
+ | < | ||
+ | Set_Model_Metric | ||
+ | ! / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ==== Examples ==== | ||
+ | |||
+ | Here are two examples utilizing pipeline modeling commands. | ||
+ | |||
+ | === Pipeline Example using Create_Hybrid_Model === | ||
+ | |||
+ | < | ||
+ | !*********************************************** | ||
+ | ! Create Hybrid model example script | ||
+ | !*********************************************** | ||
+ | |||
+ | Set_Pipeline_Parameter_To_Folder_Path | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Create_Hybrid_Model | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | === Pipeline Example using Assign_Model_File === | ||
+ | |||
+ | < | ||
+ | !*********************************************** | ||
+ | ! Assign model example script | ||
+ | !*********************************************** | ||
+ | |||
+ | Set_Pipeline_Parameter_To_Folder_Path | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Create_Hybrid_Model | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | Set_Pipeline_Parameter | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | |||
+ | ! Prompt for the Movement data files. | ||
+ | ! Multiple files can be selected in the dialog file listing using CTRL-Click | ||
+ | Open_File | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | Assign_Model_File | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/model_commands/modeling_commands.1719432396.txt.gz · Last modified: 2024/06/26 20:06 by sgranger