visual3d:documentation:pipeline:pipeline_overview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:pipeline_overview [2024/07/17 15:42] – removed sgranger | visual3d:documentation:pipeline:pipeline_overview [2024/10/30 14:19] (current) – Cleaned up page as part of review and added internal links. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Pipeline Overview ===== | ||
+ | The Pipeline is a set of Visual3D commands that are processed in sequence. The Pipeline processor provides access to the core of Visual3D functionality through commands with each of Visual3D' | ||
+ | |||
+ | **Note:** The pipeline is a **COMMAND** language, not a **SCRIPTING language**. | ||
+ | |||
+ | The Pipeline is typically used to automate processing steps. It has the ability to manage files, define events, execute signal processing computations, | ||
+ | |||
+ | {{: | ||
+ | |||
+ | A common use case for the Visual3D Pipeline is to define the processing steps for a given experimental data analysis protocol. This allows, for example, the director of the laboratory to control the processing that is done by a member of the laboratory. This may be essential for some experimental studies that require that all of the data analysis be performed consistently. | ||
+ | |||
+ | If this is your first introduction to the Visual3D Pipeline then we recommend that you work through our [[Visual3D: | ||
+ | |||
+ | ==== Pipeline Commands ==== | ||
+ | |||
+ | Pipeline commands are divided into various categories: File, Signal, Event, etc. Commands under these folders are added to the pipeline by expanding the folder for a category, and selecting the function to be added by clicking the " | ||
+ | |||
+ | === Pipeline Commands: Active Files === | ||
+ | |||
+ | Pipeline commands usually process the [[Visual3D: | ||
+ | |||
+ | === Pipeline Commands: Syntax === | ||
+ | |||
+ | Each Pipeline command consists of two parts - the command and its parameters. | ||
+ | |||
+ | < | ||
+ | Command_Name | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | !/ | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | ^Special Character ^ Meaning ^ | ||
+ | | / | Each parameter begins with a forward slash. | | ||
+ | | ; | The semi-colon character terminates a command. | | ||
+ | | ! | The exclamation point indicates that the remainder of the line is a comment. | | ||
+ | | + | The plus sign is a delimeter separating entries. For example, 1+2 indicates that the variable has two values (1 and 2). | | ||
+ | | & | The ampersand indicates a concatenation. For example, this& | ||
+ | |||
+ | If the " | ||
+ | |||
+ | To pass more than one set of parameters to the command, list the values of each parameter, separated by " | ||
+ | |||
+ | === Pipeline Commands: Specifying Signals in a Command === | ||
+ | |||
+ | Signals in Visual3D must be identified by 3 names, according to that signal' | ||
+ | - **Signal_Type - Target, Analog, etc.** | ||
+ | - **Signal_Folder - Original, Processed, etc.** | ||
+ | - **Signal_Name - Signal Name** | ||
+ | |||
+ | Signals can be explicitly represented by the following three parameters: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | If only the signal type is specified then all signals of that type (and the default folder) are implicitly selected for use in the command. For legacy support (e.g. Visual3D version 1.0), if the SIGNAL_FOLDER is empty it defaults to ORIGINAL. For example: to apply a lowpass filter to all TARGETS. This is accomplished by specifying the SIGNAL_TYPE and SIGNAL_FOLDER but leaving SIGNAL_NAMES empty. | ||
+ | |||
+ | < | ||
+ | Lowpass_Filter | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | Some commands act on signals (Target, Analog, etc). You can select a signal name for the command to work on by checking the signals in the data tree (**Signal and Event** processing mode) and pressing the **Import Signals from Data Tree** button. This will add the signal information (Type, | ||
+ | |||
+ | Alternatively, | ||
+ | |||
+ | < | ||
+ | TARGET:: | ||
+ | </ | ||
+ | |||
+ | ==== Pipeline Parameters ==== | ||
+ | |||
+ | An important feature of the pipeline is the ability to create and use [[Visual3D: | ||
+ | |||
+ | In one sense it is similar to specifying a global variable, such as body weight, that could be used in computations. Within the Visual3D pipeline, however, it is actually much more flexible since pipeline commands permit multiple entries on a single line. Since the entire line can be represented as a string, a single Pipeline Parameter can represent multiple entries. | ||
+ | |||
+ | ==== Editing Pipeline Scripts ==== | ||
+ | |||
+ | Pipeline commands in a script may be edited in 3 ways: | ||
+ | |||
+ | - Using the built-in text editor (select the **TEXT** Button) | ||
+ | - Using a dialog (select the **EDIT button**). Most, but not all Visual3D commands have an edit dialog. If no dialog exists, then the text editor appears. | ||
+ | - Using an independent text editor such as [[https:// | ||
+ | |||
+ | ==== Pipeline Control ==== | ||
+ | |||
+ | === RECALC Pipeline === | ||
+ | |||
+ | The [[Visual3D: | ||
+ | |||
+ | - If "use processed analog" | ||
+ | - Rebuild all models in the Workspace | ||
+ | - Compute landmarks and model pose (e.g. position and orientation of all segments) for all #files in the Workspace | ||
+ | - Assign Force Platforms to Segments | ||
+ | - Compute Assigned Forces | ||
+ | - Compute Kinematics | ||
+ | - Compute Kinetics | ||
+ | - Compute Center of Mass. | ||
+ | - Execute the RECALC pipeline | ||
+ | - Update the display dialogs for any new data | ||
+ | - Recompute the Report graphs | ||
+ | |||
+ | === Pipeline Favorites === | ||
+ | |||
+ | The [[Visual3D: | ||
+ | |||
+ | === Launching Visual3D & Pipeline Externally === | ||
+ | |||
+ | Visual3D can be launched from a [[visual3d: | ||
+ | |||
+ | If you have a DOS PATH set to the Visual3D directory you can type | ||
+ | |||
+ | < | ||
+ | Visual3D.exe | ||
+ | </ | ||
+ | |||
+ | If not, you must specify the full path to Visual3D. | ||
+ | |||
+ | < | ||
+ | c:\Program Files\Visual3D\Visual3D.exe | ||
+ | </ | ||
+ | |||
+ | It is possible to have a pipeline executed immediately on launching Visual3D using the following syntax. | ||
+ | |||
+ | < | ||
+ | Visual3D.exe /s c: | ||
+ | </ | ||
+ | |||
+ | Note that the full path to the pipeline file is required unless the DOS PATH to this folder is specified. | ||
+ | |||
+ | ==== Creating a Pipeline ==== | ||
+ | |||
+ | The .v3s file is an ASCII file that can be saved to disk and can be edited with any common word processing program such as [[visual3d: | ||
+ | |||
+ | Many of the pages in this wiki pages contain pipelines or snippets of pipelines, with a note saying that the text can be copied and pasted into a file. For example, | ||
+ | |||
+ | < | ||
+ | ! Starting Fresh - Clear Workspace | ||
+ | File_New | ||
+ | ; | ||
+ | |||
+ | ! Create a Hybrid model. | ||
+ | ! Prompt for the Standing Trial to use... | ||
+ | Create_Hybrid_Model | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Load the Model Template (Segment Definitions) | ||
+ | Apply_Model_Template | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Prompt for the Movement data files. | ||
+ | ! Multiple files can be selected in the dialog file listing using CTRL-Click | ||
+ | Open_File | ||
+ | ! / | ||
+ | ; | ||
+ | |||
+ | ! Assigning the Movement files to the model | ||
+ | ! Pop up the dialog box... | ||
+ | Assign_Model_File | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **The Process for creating a pipeline from the above text.** | ||
+ | |||
+ | - Select the pipeline text above, with the right mouse button on the highlighted text select copy. | ||
+ | - Open Notepad | ||
+ | - Paste into Notepad | ||
+ | - Save the Notepad file as TestPipeline.v3s | ||
+ | - This command can now be opened in the Visual3D pipeline dialog | ||
+ | |||
+ | ==== Pipeline Examples ==== | ||
+ | |||
+ | See the [[Visual3D: |
visual3d/documentation/pipeline/pipeline_overview.1721230934.txt.gz · Last modified: 2024/07/17 15:42 by sgranger