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/06/19 12:49] – 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: | ||
- | {{===== overview | + | ===== Pipeline Overview |
- | **the pipeline** | + | The Pipeline |
- | **note:** the pipeline is a **command** language, not a **scripting | + | **Note:** The pipeline is a **COMMAND** language, not a **SCRIPTING |
- | the pipeline processor | + | The Pipeline is typically used to automate processing steps. It has the ability to manage files, define events, execute signal processing computations, |
- | the pipeline has the ability to manage files, define events, execute signal processing computations, | + | {{: |
- | the pipeline processor (or any text processor) can be used to create | + | A common use case for the Visual3D Pipeline is to define |
- | tutorial4_1.jpg | + | If this is your first introduction to the Visual3D Pipeline then we recommend that you work through our [[Visual3D: |
- | in special cases, c-motion creates custom pipeline commands for users. these commands are usually fully functional but hidden from the interface. users requiring these special commands will need to remember the syntax for the commands. | + | ==== Pipeline Commands ==== |
- | a detailed **tutorial** | + | 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 |
- | ===== pipeline commands ===== | + | === Pipeline Commands: Active Files === |
- | pipeline | + | Pipeline |
- | a pipeline can be used 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. | + | === Pipeline Commands: Syntax === |
- | visual3d plug ins integrate seamlessly into visual3d and are accessed through the pipeline processor. the pipeline can be saved to disk as an ascii file ([[# | + | Each Pipeline |
- | + | ||
- | for details of specific commands that can be used through the visual3d pipeline, see: **[[visual3d: | + | |
- | + | ||
- | ==== pipeline commands: active files ==== | + | |
- | + | ||
- | pipeline commands usually process the " | + | |
- | + | ||
- | ==== pipeline commands: syntax ==== | + | |
- | + | ||
- | each pipeline | + | |
< | < | ||
- | command_name | + | Command_Name |
- | /parameter1= something | + | /Parameter1= something |
- | /parameter2= this_value+another_value | + | /Parameter2= this_value+another_value |
- | /parameter3= 3.14 | + | /Parameter3= 3.14 |
- | !/parameter4= default_value_for_parameter4 | + | !/Parameter4= default_value_for_Parameter4 |
; | ; | ||
</ | </ | ||
- | **note:** that each parameter begins with a slash and that the command | + | ^Special Character ^ Meaning ^ |
+ | | / | Each parameter begins with a forward | ||
+ | | ; | The semi-colon character terminates a command. | | ||
+ | | ! | The exclamation point indicates | ||
+ | | + | 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& | ||
- | the " | + | If the " |
- | to pass more than one set of parameters to the command, list the values of each parameter, separated by " | + | To pass more than one set of parameters to the command, list the values of each parameter, separated by " |
- | optional parameter are commented out - thus they start with an exclamation mark. when a command is first added to the pipeline the default values are displayed on the line, so that the user is aware of the default values. | + | === Pipeline Commands: Specifying Signals in a Command === |
- | ==== pipeline commands: special command characters ==== | + | 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** | ||
- | the pipeline commands reserve 4 special characters | + | Signals can be explicitly represented by the following three parameters: |
- | * **!** - if this is the first character | + | < |
- | * **/** - 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& | + | /Signal_Folder= The name of the signal folder |
+ | </ | ||
- | ==== pipeline commands: specifying | + | If only the signal type is specified then all signals |
- | signals in visual3d must be identified by 3 components | + | < |
- | + | Lowpass_Filter | |
- | - **signal_type - target, analog, etc** | + | / |
- | - **signal_name - signal name** | + | / |
- | - **signal_folder - the specific folder** | + | / |
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ; | ||
+ | </ | ||
- | signals can be represented | + | Some commands act on signals |
- | many commands | + | Alternatively, |
< | < | ||
- | / | + | TARGET:: |
- | / | + | |
- | / | + | |
</ | </ | ||
- | these commands allow the user to import the checked signals in the data tree, so the syntax need not be remembered. | + | ==== Pipeline Parameters ==== |
- | === implicit behaviors === | + | An important feature of the pipeline is the ability to create and use [[Visual3D: |
- | if only the signal type is specified. all signals of that type (and the default folder) are implicitly selected for use in the command. | + | In one sense it is similar to specifying a global variable, such as body weight, |
- | 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. | + | ==== Editing Pipeline Scripts ==== |
- | **lowpass_filter** | + | Pipeline commands |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | / | + | |
- | **;** | + | |
- | for legacy support (e.g. visual3d version 1.0), if the signal_folder is empty it defaults to original. | + | |
- | / | + | - Using the built-in text editor (select the **TEXT** Button) |
- | is equivalent to | + | - 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. |
- | /signal_folder=original | + | - Using an independent text editor such as [[https:// |
- | === entering signal names into a command === | + | |
- | 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, | + | ==== Pipeline Control ==== |
- | many of the commands that act on signals will not show the signals in the dialog. this can be a bit of an annoyance when there are only a few signals selected, but often commands contain so many signals that the list box in the dialog will become meaningless because of all the signals. | + | === RECALC Pipeline === |
- | to make it easier to enter the signal types, names, and folders into a command, there is a button | + | The [[Visual3D: |
- | ==== pipeline | + | - 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 | ||
+ | - Update the display dialogs for any new data | ||
+ | - Recompute the Report graphs | ||
- | for some commands, signals are represented using the a pipeline parameter syntax. this type of syntax is used in the evaluate_expression command. for example, to identify the rft1 signal we use the syntax type:: | + | === Pipeline Favorites === |
- | target:: | + | The [[Visual3D:Documentation:Pipeline:General_Information:Pipeline_Favorites|Pipeline Commands: |
- | more details on expressions and evaluate_expression can be found here: **[[visual3d:documentation:pipeline:expressions:overview|expressions]]** | + | |
- | ===== pipeline parameters ===== | + | === Launching Visual3D & Pipeline Externally |
- | an important feature of the pipeline is the ability to create and use pipeline parameters. a **pipeline parameter** is a way to store a text string for use in pipeline commands. | + | Visual3D can be launched from a [[visual3d: |
- | in one sense it is similar | + | If you have a DOS PATH set to the Visual3D directory you can type |
- | more details on naming and using parameters in pipelines can be found here: **[[visual3d: | + | < |
+ | Visual3D.exe | ||
+ | </ | ||
- | ==== editing pipeline parameters ==== | + | If not, you must specify the full path to Visual3D. |
- | parameters in pipeline commands may be edited in 3 ways: | + | < |
+ | c:\Program Files\Visual3D\Visual3D.exe | ||
+ | </ | ||
- | - using the built-in text editor (select the **text** button) | + | It is possible to have a pipeline executed immediately on launching Visual3D |
- | - 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 [[# | + | |
- | ===== pipeline control ===== | + | < |
+ | Visual3D.exe /s c: | ||
+ | </ | ||
- | ==== recalc | + | Note that the full path to the pipeline |
- | the recalc button updates the visual3d workspace by performing the following: | + | ==== Creating a Pipeline ==== |
- | - if "use processed analog" | + | 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: |
- | - rebuild all models in the workspace | + | |
- | - compute landmarks and model pose (e.g. position and orientation of all segments) for all # | + | |
- | - 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 | + | |
- | more details on recalc in the visual3d workspace and pipelines can be found here: **[[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, |
- | + | ||
- | ==== pipeline favorites ==== | + | |
- | + | ||
- | pipeline favorites is a very powerful way for you to list your pipeline scripts as a table of contents. your list of pipeline scripts can be viewed or run from the ' | + | |
- | + | ||
- | ==== launching visual3d & pipeline externally ==== | + | |
- | + | ||
- | launching visual3d from a dos command line (or an external program) | + | |
- | + | ||
- | 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: | + | |
- | + | ||
- | 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 ===== | + | |
- | + | ||
- | ==== pipeline v3s file ==== | + | |
- | + | ||
- | 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 [[notepad%2b%2b|notepad++]]. when visual3d loads the .v3s file it parses this ascii file into the individual commands that are displayed in the pipeline dialog. | + | |
- | + | ||
- | many of the topics in the 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 | + | ! Starting Fresh - Clear Workspace |
- | file_new | + | File_New |
; | ; | ||
- | ! create | + | ! Create |
- | ! prompt | + | ! Prompt |
- | create_hybrid_model | + | Create_Hybrid_Model |
- | ! /calibration_file= | + | ! /CALIBRATION_FILE= |
; | ; | ||
- | ! load the model template | + | ! Load the Model Template |
- | apply_model_template | + | Apply_Model_Template |
- | ! /model_template= | + | ! /MODEL_TEMPLATE= |
- | ! /calibration_file= | + | ! /CALIBRATION_FILE= |
; | ; | ||
- | ! prompt | + | ! Prompt |
- | ! multiple | + | ! Multiple |
- | open_file | + | Open_File |
- | ! /file_name= | + | ! /FILE_NAME= |
; | ; | ||
- | ! assigning | + | ! Assigning |
- | ! pop up the dialog box... | + | ! Pop up the dialog box... |
- | assign_model_file | + | Assign_Model_File |
- | ! /calibration_file= | + | ! /CALIBRATION_FILE= |
- | ! /motion_file_names= | + | ! /MOTION_FILE_NAMES= |
; | ; | ||
</ | </ | ||
- | **the process | + | **The Process |
- | + | ||
- | - 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 pipeline | + | - Select |
+ | - Open Notepad | ||
+ | - Paste into Notepad | ||
+ | - Save the Notepad file as TestPipeline.v3s | ||
+ | - This command can now be opened in the Visual3D | ||
+ | ==== Pipeline Examples ==== | ||
- | }} | + | See the [[Visual3D: |
visual3d/documentation/pipeline/pipeline_overview.1718801370.txt.gz · Last modified: 2024/06/19 12:49 by sgranger