visual3d:documentation:pipeline:general_information:pipeline_introduction
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
visual3d:documentation:pipeline:general_information:pipeline_introduction [2024/07/17 15:42] – removed sgranger | visual3d:documentation:pipeline:general_information:pipeline_introduction [2024/07/17 15:45] (current) – created sgranger | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Pipeline Introduction ====== | ||
+ | |||
+ | **THIS PAGE IS UNDER CONSTRUCTION! So it's still being developed, and is a combination of the following wiki pages:** | ||
+ | |||
+ | **https:// | ||
+ | |||
+ | **https:// | ||
+ | |||
+ | **https:// | ||
+ | |||
+ | **https:// | ||
+ | |||
+ | ===== Introduction ===== | ||
+ | |||
+ | Every step you perform in Visual3D through the user interface, can also be accomplished using a pipeline command. The pipeline commands are a way of automating the processing procedure. | ||
+ | |||
+ | The pipeline is a command language, not a scripting language. This essentially means you have a series of commands that act as building blocks, you just have to string them together. For example, if you want to calculate range of motion of the ankle angle, you need to define the ankle angle, calculate the maximum of the ankle angle, calculate the minimum of the ankle angle, and subtract the min from the max. | ||
+ | |||
+ | Once you have created a pipeline, it can be saved as a [[Visual3D: | ||
+ | |||
+ | ===== Pipeline Workshop ===== | ||
+ | |||
+ | You can open the pipeline workshop by going to Pipeline -> Workshop or clicking on the button on the [[Visual3D: | ||
+ | |||
+ | **The pipeline workshop has three sections:** | ||
+ | |||
+ | |{{: | ||
+ | |||
+ | Commands can be moved into the Main Pipeline by using the Add **>> | ||
+ | |||
+ | ==== Editing a Command ==== | ||
+ | |||
+ | |{{: | ||
+ | |{{: | ||
+ | |||
+ | ===== Pipeline Command ===== | ||
+ | |||
+ | Every pipeline command has a text edit option (not all commands have GUI - or user interface). The command text is always set up as follows: | ||
+ | |||
+ | **Command Name**\\ | ||
+ | **/ | ||
+ | **! / | ||
+ | **;**\\ | ||
+ | |||
+ | |||
+ | The command name will always appear first, and the semicolon defines the end of the pipeline command. The body of the command contains the parameters. | ||
+ | |||
+ | Any line that starts with an exclamation point ! is not read, it is seen as a comment line. If a parameter is has an exclamation point in front of it, the default value will be used. To change the default value, you must delete the exclamation point and type the desired value to the right of the equals sign for that parameter. | ||
+ | |||
+ | Any line that does not start with an exclamation point defines a required parameter. | ||
+ | |||
+ | Each parameter must start with a slash. | ||
+ | |||
+ | === Special Characters === | ||
+ | |||
+ | * **!** - if this is the first character of a line, the line is considered a comment. If the ! is at the beginning of a variable name, the default value of the variable is used | ||
+ | * **/** - indicates a command variable | ||
+ | * **+** - is a delimeter separating entries. For example, 1+2 indicates that the variable as two values (1 and 2). | ||
+ | * **&** - indicates a concatenation. For example, this& | ||
+ | * ***** - indicates a [[|wildcard]] (or multiplication) | ||
+ | |||
+ | When defining signal names or pipeline parameters, NEVER use a mathematical operator or a special character in the signal name. It's also best to avoid spaces (use an underscore **_** instead). | ||
+ | |||
+ | ===== Pipeline Parameters ===== | ||
+ | |||
+ | Pipeline parameters can be used to pass data from one command to another. They can be used in many different ways. | ||
+ | |||
+ | A PIPELINE PARAMETER is a way to store a text string for use in Pipeline commands. It is similar to specifying a global variable, such as body weight, that could be used in computations. It is actually much more flexible than that in the pipeline. The Visual3D pipeline commands permit multiple entries on a single line, and since the entire line can be represented as a string, a single PIPELINE PARAMETER can represent multiple entries. | ||
+ | |||
+ | A simple example is to prompt the user for a folder path, then export data to that folder path: | ||
+ | |||
+ | First the user is prompted for the folder path: | ||
+ | |||
+ | **[[Visual3D: | ||
+ | **/ | ||
+ | **/ | ||
+ | **;**\\ | ||
+ | |||
+ | |||
+ | The user has defined the parameter name as EXPORT_FOLDER. For this command, if the PARAMETER_VALUE is set blank, it will prompt the user for a folder location. Then everywhere it says EXPORT_FOLDER in the rest of the script, the text will be replaced with the folder path. | ||
+ | **[[Visual3D: | ||
+ | **/ | ||
+ | ...\\ | ||
+ | **;**\\ | ||
+ | |||
+ | |||
+ | When referencing a pipeline parameter in a script, you must type two colons before the parameter. If you are concatenating the pipeline parameter with a string (such as LAnkleAngle.txt), | ||
+ | Note sure if an ampersand is necessary? It's always safe to include it anyway **&:: | ||
+ | |NOTES: | ||
+ | |* Different commands have different behavior depending on what they are intended to do. In another command, leaving a parameter blank will not necessarily bring up a prompt.\\ * The " | ||
+ | |||
+ | ===== Expressions ===== | ||
+ | |||
+ | The [[Visual3D: | ||
+ | |||
+ | Many commands have pipeline parameters that accept expressions using the same syntax as the [[Visual3D: | ||
+ | |||
+ | ==== Signal Names ==== | ||
+ | |||
+ | === Signal Names as Expressions === | ||
+ | |||
+ | **In an [[Visual3D: | ||
+ | |||
+ | **Signals are referenced by SIGNAL_TYPE:: | ||
+ | |||
+ | |**This signal would be referenced DERIVED:: | ||
+ | |||
+ | **Important: | ||
+ | |||
+ | === Signal Names as Parameters === | ||
+ | |||
+ | Many commands have the following parameters | ||
+ | |||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | This means the command requires the type, folder and signal names specified in these parameters (instead of using the Expression syntax). | ||
+ | |||
+ | ===== FAQ ===== | ||
+ | |||
+ | |Frequently Asked Questions: | ||
+ | |You cannot create your own parameters for a command. For example, the default parameters for the Automatic Gait Events command are the following: | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/general_information/pipeline_introduction.1721230947.txt.gz · Last modified: 2024/07/17 15:42 by sgranger