visual3d:documentation:pipeline:expressions:reserved_names
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:expressions:reserved_names [2024/06/19 13:59] – created sgranger | visual3d:documentation:pipeline:expressions:reserved_names [2025/06/20 18:45] (current) – Cleaned up page and added section headers. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Visual3D | + | ====== |
- | ===== Contents ===== | + | Certain names are reserved within the Visual3D pipeline/ |
- | + | ||
- | + | ||
- | + | ||
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[# | + | |
- | * [[#NAN|2 NAN]] | + | |
- | * [[#isNAN|3 isNAN]] | + | |
===== CURRENT_SIGNAL ===== | ===== CURRENT_SIGNAL ===== | ||
- | Used to refer to a specific signal with a simple syntax | + | The CURRENT_SIGNAL reserved named is used to refer to a specific signal |
- | Compute the length of one signal. | + | |
+ | ==== Example: | ||
The legacy syntax is: | The legacy syntax is: | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 26: | Line 19: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | The legacy syntax can get complicated if [[Visual3D: | + | </ |
+ | The legacy syntax can get complicated if [[Visual3D: | ||
+ | |||
+ | < | ||
! Create a pipeline parameter containing the marker name | ! Create a pipeline parameter containing the marker name | ||
- | **Set_Pipeline_Parameter** | + | Set_Pipeline_Parameter |
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | This gets even more complicate if the folder is also a pipeline parameter. | + | </ |
- | An alternative is the following | + | This gets even more complicate if the folder is also a pipeline parameter. |
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 53: | Line 51: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
- | === Used to allow multiple signals | + | ==== Example: Specify |
- | Compute | + | This example computes |
- | The legacy implementation requires a [[Visual3D: | + | < |
- | + | For_Each | |
- | [[Visual3D: | + | |
/ | / | ||
/Items= RFT1+RFT2+RFT3 | /Items= RFT1+RFT2+RFT3 | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 76: | Line 74: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
End_For_Each | End_For_Each | ||
/ | / | ||
- | **;** | + | ; |
- | Using CURRENT_SIGNAL | + | </ |
+ | |||
+ | Instead, using the CURRENT_SIGNAL | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 91: | Line 93: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
+ | ==== Example: Specify all signals of a given type ==== | ||
- | === Used to Specifying | + | This example computes the length of all TARGETS in the ORIGINAL folder. The legacy implementation requires a [[Visual3D: |
- | Compute the length of all TARGETS in the ORIGINAL folder | + | < |
- | + | Set_Pipeline_Parameter_To_List_Of_Signal_Names | |
- | The legacy implementation requires a [[Visual3D: | + | |
- | + | ||
- | [[Visual3D: | + | |
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | [[Visual3D: | + | |
+ | For_Each | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | **Evaluate_Expression** | + | |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 119: | Line 121: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
End_For_Each | End_For_Each | ||
/ | / | ||
- | **;** | + | ; |
- | Using CURRENT_SIGNAL | + | </ |
+ | |||
+ | Instead, using the CURRENT_SIGNAL | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 134: | Line 140: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
+ | ==== Example: Apply suffix to signal name ==== | ||
- | === APPLY_AS_SUFFIX_TO_SIGNAL_NAME | + | If the /APPLY_AS_SUFFIX_TO_SIGNAL_NAME |
- | If **APPLY_AS_SUFFIX_TO_SIGNAL_NAME** is **true**, OR RESULT_NAMES.size() == SIGNAL_NAMES.size() | + | For example, when computing the length of all TARGETS in the ORIGINAL folder. |
- | Compute the length of all TARGETS in the ORIGINAL folder | + | < |
- | + | Evaluate_Expression | |
- | **Evaluate_Expression** | + | |
/ | / | ||
/ | / | ||
Line 153: | Line 159: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | Compute | + | </ |
+ | |||
+ | Or when computing | ||
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 165: | Line 174: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | Compute a Best_Plane_Fit for multiple signals at each frame of data | + | </ |
- | **Evaluate_Expression** | + | Also when calculating a Best_Plane_Fit for multiple signals at each frame of data. |
+ | |||
+ | < | ||
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
Line 177: | Line 189: | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | \\ | + | </ |
- | If **APPLY_AS_SUFFIX_TO_SIGNAL_NAME** is **false**, AND RESULT_NAMES.size() == 1 | + | |
- | Compute the length of one TARGET (TARGET:: | ||
- | |||
- | **Evaluate_Expression** | ||
- | / | ||
- | / | ||
- | / | ||
- | / | ||
- | **;** | ||
===== NAN ===== | ===== NAN ===== | ||
- | NAN is a reserved string used to designate "Not a Number" | + | NAN is a reserved string used to designate "Not a Number" |
- | Visual3D commands refer to [[Visual3D: | + | For example, the expression 1/0 results in NAN. |
- | For example, the expression 1/0 results in NAN | + | ==== isNAN function |
- | ===== isNAN ===== | + | |
- | isNAN(expression) tests values against NAN - If the number is NAN the result is 1, otherwise the result is 0 | + | The function |
- | [Set_Pipeline_Parameter_From_Expression] | + | < |
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
::NAN_TEST = 1 | ::NAN_TEST = 1 | ||
- | [Set_Pipeline_Parameter_From_Expression] | + | |
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
- | ::NAN_TEST = 1 | + | |
- | Returns " | + | |
- | [Set_Pipeline_Parameter_From_Expression] | + | ::NAN_TEST = 1 ! Returns " |
+ | |||
+ | Set_Pipeline_Parameter_From_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
::NAN_TEST = 0 | ::NAN_TEST = 0 | ||
- | Example: Set negative values to NO_DATA | + | </ |
+ | |||
+ | ==== Example: Set negative values to NO_DATA | ||
- | If the z-component of the LELB signal is below 0 set the frame to NO_DATA | + | In this example, if the z-component of the LELB signal is below 0 then we will set the frame to NO_DATA. |
- | **Evaluate_Expression** | + | < |
+ | Evaluate_Expression | ||
/ | / | ||
/ | / | ||
/ | / | ||
/ | / | ||
- | **;** | + | ; |
+ | </ | ||
+ | ===== ORIGIN ===== | ||
+ | Internally Visual3D specifies the location ORIGIN. To avoid confusion, this string cannot be used to name either a TARGET or a LANDMARK. |
visual3d/documentation/pipeline/expressions/reserved_names.1718805572.txt.gz · Last modified: 2024/06/19 13:59 by sgranger