General Condition Judgment V1

Description

The General Condition Judgment operator is used to compare a specific attribute value of the input data with a set threshold. It supports various data types (such as numbers, strings, List, Image, Point Cloud, Pose list, etc.), and allows users to specify the attribute to compare (e.g., List length, value, or specific attribute values of a List or dictionary). Comparison conditions include greater than, Greater than or equal to, Equal to, less than, Less than or equal to, and Not equal to, ultimately outputting a judgment result.

Overview

Determines if input data meets conditions, supporting checks on value size, list length, object attributes and sub-attributes, outputting a boolean result.

Scenarios

  • Flow Control: Decides the algorithm flow branch based on the size, quantity, or specific attribute value of the calculated result from the previous step. For example, if the number of detected targets is greater than 0, execute grabbing; otherwise, retake the photo.

  • Status Check: Determines if an input value is Equal to the expected value.

  • Loop Control: Acts as a judgment condition in a loop structure.

Inputs and Outputs

Inputs

Data to be judged: The data type of the input needs to be instantiated.

Outputs

True Output: Outputs True when the judgment condition is met, otherwise outputs False.

False Output: Outputs True when the judgment condition is not met, otherwise outputs False.

Parameters

Judge Condition

Description

Selects the logical operator used to compare the data attribute value against the threshold.

Tuning Instructions

Select the comparison relationship as needed.

Parameter Range

Values/Range:

  • Less Than

  • Less Than or Equal To

  • Greater Than

  • Greater Than or Equal To

  • Equal To

  • Not Equal To

Default: Equal To

Comparison Object Type

Description

Type of the comparison target object.

Parameter Range

Default: Float

Judgment Threshold

Description

The threshold value used for comparison against the selected attribute value of the input data.

Tuning Instructions

Enter a value to be used for comparison. For example, if you want to determine whether the list length is greater than 5, set this value to "5"; if you want to determine whether the score equals 0.8, set it to "0.8". Ensure that the entered value can be correctly interpreted as the target comparison type.

Parameter Range

Default: 0

Empty List Sub-Attribute Output

Description

This parameter takes effect only when the input data is of list type, the list is empty, and "Compare Internal Element Attributes" is enabled. It defines whether the operator output should be True or False in this special case.

Tuning Instructions

Because no first element can be retrieved from an empty list to compare its sub-attributes, you must explicitly specify the expected result for this scenario.

  • Disabled (default): If an empty list requires sub-attribute evaluation, the final condition result is output as False.

  • Enabled: If an empty list requires sub-attribute evaluation, the final condition result is output as True.

Parameter Range

Values/Range:

  • False

  • True

Default: False

Compare Sub-Attribute

Description

This parameter appears and takes effect only when the input data is of list type (e.g., a pose list, grasp point list, etc.) and its internal elements (typically dictionaries or objects) have comparable attributes. It determines whether to compare an attribute of the list itself (such as its length) or a specific attribute of the first element in the list.

Tuning Instructions

  • Enabled (default): Instead of comparing the list itself, retrieves the first element from the list and compares one of its internal attributes.

  • Disabled: Compares an attribute of the list itself.

Parameter Range

Values/Range:

  • False

  • True

Default: False

Comparison Attribute

Description

This parameter is displayed dynamically based on the currently selected data type and determines what this node actually compares. You can compare the value of the object itself, the length of a list, or a sub-attribute of that type. First decide whether you want to judge the data itself or one of its characteristics, and then choose the corresponding comparison attribute.

Parameter Range

Values/Range:

  • List Length

  • Current Value

  • UUID Identifier

  • Confidence

  • Polygon

  • Class Name

  • Angle

  • Minimum Area Rectangle

  • Minimum Bounding Box

  • Pose

  • Model Name

  • Point Cloud Index

  • id

  • Priority

  • Pick Point Name

  • Pick Point Original Pose

  • Status Code

  • Status Message

  • Status Type

  • Minimum Value

  • Maximum Value

  • Rotation Relationship

  • Center Point

  • Dimensions

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

  • Point Cloud Point Count

  • Point Cloud Data Type

Internal Element Attribute

Description

This parameter is displayed dynamically based on the currently selected data type and, when "Compare Sub-Attribute" is enabled, determines which internal field is compared. Choose the attribute that best represents your judgment condition, such as identifier, score, class, size, or tag-related information.

Parameter Range

Values/Range:

  • List Length

  • Current Value

  • UUID Identifier

  • Confidence

  • Polygon

  • Class Name

  • Angle

  • Minimum Area Rectangle

  • Minimum Bounding Box

  • Pose

  • Model Name

  • Point Cloud Index

  • id

  • Priority

  • Pick Point Name

  • Pick Point Original Pose

  • Status Code

  • Status Message

  • Status Type

  • Minimum Value

  • Maximum Value

  • Rotation Relationship

  • Center Point

  • Dimensions

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

  • Point Cloud Point Count

  • Point Cloud Data Type

Comparison Attribute

Description

For this data type in the current node, only the value option is available, meaning the value or content of the input object itself is compared directly. Length or internal-attribute comparison is not provided.

Parameter Range

Values/Range:

  • value

Default: value

Comparison Attribute

Description

For this data type in the current node, only the value option is available, meaning the value or content of the input object itself is compared directly. Length or internal-attribute comparison is not provided.

Parameter Range

Values/Range:

  • value

Default: value

Comparison Attribute

Description

For this data type in the current node, only the value option is available, meaning the value or content of the input object itself is compared directly. Length or internal-attribute comparison is not provided.

Parameter Range

Values/Range:

  • value

Default: value

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, only the value option is available, meaning the value or content of the input object itself is compared directly. Length or internal-attribute comparison is not provided.

Parameter Range

Values/Range:

  • value

Default: value

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, only the value option is available, meaning the value or content of the input object itself is compared directly. Length or internal-attribute comparison is not provided.

Parameter Range

Values/Range:

  • value

Default: value

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Comparison Attribute

Description

For this data type in the current node, the available comparison options are len, value. value compares the object itself directly, while len compares its length, element count, or size-related quantity. Choose according to whether you need the content itself or a quantity/length characteristic.

Parameter Range

Values/Range:

  • len

  • value

Default: len

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are UUID Identifier, Confidence, Class Name, Angle. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • UUID Identifier

  • Confidence

  • Class Name

  • Angle

Default: UUID Identifier

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are UUID Identifier, Confidence, Model Name, Point Cloud Index, Class Name. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • UUID Identifier

  • Confidence

  • Model Name

  • Point Cloud Index

  • Class Name

Default: UUID Identifier

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are id, priority, uuid, score, name, model_binding_name. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • id

  • Priority

  • UUID Identifier

  • Confidence

  • Pick Point Name

  • Model Name

Default: id

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Status Code, Status Message, Status Type. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Status Code

  • Status Message

  • Status Type

Default: Status Code

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Image Area, Image Channels, Image Height, Image Width, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

Default: Image Area

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Image Area, Image Channels, Image Height, Image Width, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

Default: Image Area

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Image Area, Image Channels, Image Height, Image Width, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

Default: Image Area

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Image Area, Image Channels, Image Height, Image Width, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Image Area

  • Image Channels

  • Image Height

  • Image Width

  • Tag

Default: Image Area

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Point Count, Point Data Type, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Point Cloud Point Count

  • Point Cloud Data Type

  • Tag

Default: Point Cloud Point Count

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Point Count, Point Data Type, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Point Cloud Point Count

  • Point Cloud Data Type

  • Tag

Default: Point Cloud Point Count

Internal Element Attribute

Description

Specifies which internal field is actually used for judgment or comparison in the current node. Available options are Point Count, Point Data Type, Tag. Choose the field you want to use as the comparison basis, such as identifier, score, size, index, or tag-related information.

Parameter Range

Values/Range:

  • Point Cloud Point Count

  • Point Cloud Data Type

  • Tag

Default: Point Cloud Point Count