visual3d:documentation:pipeline:meta_commands:meta_commands_overview
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:meta_commands:meta_commands_overview [2024/06/19 12:51] – sgranger | visual3d:documentation:pipeline:meta_commands:meta_commands_overview [2025/04/28 17:38] (current) – Cleaned up formatting and removed references to 3DSSPP. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | \\ | + | ====== Meta Commands Overview ====== |
+ | A meta-command is a Visual3D [[visual3d: | ||
- | a meta-command | + | When Visual3D starts, it scans the meta-command |
- | when visual3d starts, it scans the meta-command directory (identified in the edit-> | + | ===== Meta-Command Header Syntax ===== |
- | the header in the meta-command defines the data that should be passed. | + | < |
+ | ! BEGIN_META //- This line is a mandatory identifier to signal Visual3D | ||
+ | ! META_CMD_NAME = x //- Where x is the name you want your new command to have | ||
+ | </ | ||
- | \\ | + | A meta-command can have multiple parameter specifications. Each one formatted: |
+ | < | ||
+ | ! META_PARAM = param_name: type : default_parameter : | ||
+ | </ | ||
+ | - **Param_Name**: | ||
+ | - **Type**: either integer, string, float, or signal | ||
+ | - For signal type parameters the signal type, name, and folder are needed in the [: | ||
+ | - **Default_Parameter**: | ||
+ | - **Optionality**: | ||
- | ===== meta-command header syntax ===== | + | < |
- | + | ! END_META | |
- | ! begin_meta\\ | + | </code> |
- | + | ||
- | + | ||
- | //- this line is a mandatory identifier | + | |
- | \\ | + | |
- | ! meta_cmd_name = x\\ | + | |
- | + | ||
- | + | ||
- | //- where x is the name you want your new command to have// | + | |
- | \\ | + | |
- | a meta-command can have multiple parameter specifications. each one formatted: | + | |
- | ! meta_param = parm_name: type : default_parameter : | + | |
- | + | ||
- | + | ||
- | //- parm_name = what you call your parameter - followed by :\\ | + | |
- | // | + | |
- | - type = integer, string, float, signal\\ | + | |
- | + | ||
- | - default_parameter = you can set a default value for the parameter, or this can be left blank\\ | + | |
- | + | ||
- | - optionality = yes, no determines if parameter is required or not\\ | + | |
- | + | ||
- | - for type=signal, | + | |
- | // | + | |
- | \\ | + | |
- | + | ||
- | + | ||
- | ! end_meta\\ | + | |
- | + | ||
- | + | ||
- | //- the mandatory end identifier// | + | |
- | \\ | + | |
- | for example: | + | |
+ | For example: | ||
< | < | ||
- | ! begin_meta | + | ! BEGIN_META |
- | ! meta_cmd_name=terry_rt_plantar_flexors_group | + | ! META_CMD_NAME=Terry_Rt_Plantar_Flexors_Group |
- | ! meta_param= model_name : string :: | + | ! META_PARAM= MODEL_NAME : string :: |
- | ! meta_param= right_thigh_markers : string :: | + | ! META_PARAM= RIGHT_THIGH_MARKERS : string :: |
- | ! meta_param= right_shank_markers: string :: | + | ! META_PARAM= RIGHT_SHANK_MARKERS: string :: |
- | ! meta_param= right_foot_markers: string :: | + | ! META_PARAM= RIGHT_FOOT_MARKERS: string :: |
- | ! end_meta | + | ! END_META |
</ | </ | ||
- | this command will appear in the visual3d pipeline | + | This command will appear in the [[visual3d: |
< | < | ||
- | terry_rt_plantar_flexors_group | + | Terry_Rt_Plantar_Flexors_Group |
- | /model_name= *model.mdh | + | /MODEL_NAME= *model.mdh |
- | /right_thigh_markers= rgt+rlk+rmk | + | /RIGHT_THIGH_MARKERS= RGT+RLK+RMK |
- | /right_shank_markers= ltt +rla+rma | + | /RIGHT_SHANK_MARKERS= LTT +RLA+RMA |
- | /right_foot_markers= rhl+rft2+rft1 | + | /RIGHT_FOOT_MARKERS= RHL+RFT2+RFT1 |
; | ; | ||
</ | </ | ||
- | example of a default parameter: ! meta_param | + | ==== Editing |
- | + | ||
- | ==== editing | + | |
- | + | ||
- | meta-commands are stored on the disk, not in the workspace. in order to edit a meta-command it is necessary to open the file in a text editor such as notepad. the pipeline stores a reference to the meta-command file, rather than loading the meta-command. | + | |
- | + | ||
- | ==== meta-command examples ==== | + | |
- | + | ||
- | following is a list of meta-command examples: | + | |
- | + | ||
- | === emg === | + | |
- | **1. basic_emg_filters** | + | Meta-commands are stored on the disk, not in the workspace. In order to edit a meta-command it is necessary to open the file in a text editor such as [[visual3d: |
- | **2. emg_resting_background and madonna_emg_remove background** | + | ===== Meta-Command Examples ===== |
- | **3. emg_compute_normalization_factors** - compute the normalization factor for greatest ½ second activity during 5 second trial. | + | Following is a list of Meta-Command Examples: |
- | **4. emg_normalize** - typically the scaling factors for emg signals are the result of other data trials. individual files in visual3d cannot access the data from other files, so they only way signals can be shared is through the global workspace. for the sake of this example, we will assume that the scale factors already exist in the global workspace. click [[visual3d: | + | ==== EMG ==== |
- | === events === | + | **1. Basic_EMG_Filters** - Basic filtering of EMG signals. A series of band-stop (notch) filter for filtering 60 Hz noise, followed by a high pass filter at 10 Hz and a low pass filter at 350 Hz. Click [[Visual3D: |
- | **1. copy_events_between_files** - copy event labels from the mocap c3d file into the analog c3d file. one set of analog signals are collected with the mocap system at 1000 hz. one set of analog signals are collected with different software at 1500 hz (frame 1 is synchronized). click [[visual3d:documentation:pipeline:event_commands: | + | **2. EMG_Resting_Background and Madonna_EMG_Remove Background** - To Offset trial data to accommodate for any DC shift by quantifying |
- | **2. compute_events_without_grf** - computing gait events from only kinematic data. the following example is based on the following article published in 2008. zeni ja, richards jg, higginson js (2008) two simple methods | + | **3. EMG_Compute_Normalization_Factors** - Compute |
- | **3. sit_to_stand_events** - computing events | + | **4. EMG_Normalize** - Typically the Scaling factors |
- | **4. number_events_sequentially** - this meta-command will rename an event sequentially across files. there are two examples. one that renames an event_label sequentially and the other example uses this meta-command to find complete cycles across a series of trials. click [[visual3d: | + | ==== Events ==== |
- | === metrics === | + | **1. Copy_Events_Between_Files** - Copy Event Labels from the motion capture c3d file into the analog c3d file. One set of analog signals are collected with the motion capture system at 1000 Hz. One set of analog signals are collected with different software at 1500 Hz (frame 1 is synchronized). Click [[Visual3D: |
- | **1. concatenate_gait_metrics** - this meta-command will create the gait metrics for each tag, labeling | + | **2. Compute_Events_Without_GRF** - Computing |
- | **2. add_index_column_to_metric** - visual3d cannot plot an array of metric values since the metric signals have no time base. this meta-command will create a new column | + | **3. Sit_To_Stand_Events** - Computing events for sit to stand from vertical height |
- | === sdsspp === | + | **4. Number_Events_Sequentially** - This meta-command will rename an event sequentially across files. There are two examples. One that renames an Event_label sequentially and the other example uses this meta-command to find complete cycles across a series of trials. Click [[Visual3D: |
- | **1. create_3dsspp_target_offsets** - this meta-command creates a collection of derived signals that are used for computing the 3dsspp planar angles. this command is used where there is no linkmodel, and therefore no landmarks defined. click [[|create 3dsspp target offsets]] for details. | + | ==== Metrics ==== |
- | **2. create_3dsspp_projected_angles** - this meta-command | + | **1. Concatenate_Gait_Metrics** - This meta-command |
- | '**3. create_3dsspp_origin_destination_events** - this meta-command | + | **2. Add_Index_Column_To_Metric** - Visual3D cannot plot an array of metric values since the METRIC signals have no time base. This meta-command |
- | === other === | + | ==== Other ==== |
- | **1. create_global_means_for_left_right** - creates | + | **1. Create_Global_Means_For_Left_Right** - Creates |
- | **2. set_corners** - creates | + | **2. Set_Corners** - Creates |
- | **3. fp_shift** - meta-command example to shift force platform corners. | + | **3. FP_Shift** - Meta-command example to shift force platform corners. |
- | **4. add_sequential_tags** - given a set of c3d files opened in the workspace, tag files in numerical order regardless of their filenames. | + | **4. Add_Sequential_Tags** - Given a set of C3D files opened in the Workspace, TAG files in numerical order regardless of their filenames. |
- | **5. example_meta** - this is an example of using a meta-command to process differing experimental protocols, models, metrics, and reports. | + | **5. Example_Meta** - This is an example of using a meta-command to process differing experimental protocols, models, metrics, and reports. |
- | **6. linear_regression_explicit** - this is an example of using a meta-command to perform a linear regression of data that is passed as meta-command parameters. | + | **6. Linear_Regression_Explicit** - This is an example of using a meta-command to perform a linear regression of data that is passed as meta-command parameters. |
- | **7. linear_regression_events** - this is an example of using a meta-command to perform a linear regression between an event range for data that is passed as meta-command parameters. | + | **7. Linear_Regression_Events** - This is an example of using a meta-command to perform a linear regression between an event range for data that is passed as meta-command parameters. |
visual3d/documentation/pipeline/meta_commands/meta_commands_overview.1718801469.txt.gz · Last modified: 2024/06/19 12:51 by sgranger