Target Object Pose Sorting
Description
Sorts the input target object pose list by a strategy chain. Each stage computes a comparison value, orders the current group, and optionally splits it by a grouping threshold. The next stage only continues inside each group.
Overview
Multi-level sorting strategy combination, supporting layered picking, path optimization, center priority, and other scenarios.
Scenarios
-
Layered handling: Sort by Z height to process upper objects first.
-
Path optimization: Sort by X or Y to reduce robot travel distance.
-
Confidence-first execution: Sort by score when upstream nodes provide score values.
-
Composite rules: First sort by height and then by another strategy inside each layer.
Inputs and Outputs
Inputs |
Target Object Pose Information: Input unordered target object pose list. Draw Scene (Optional): Used for on-screen display. |
Outputs |
Target Object Pose Information: Output target object pose list after sorting. Debug sorting information: Detailed information including layered sorting and grouping. |
Parameters
Target Object Pose Sorting Strategy
Description |
List of target object pose sorting strategies. |
Parameter Range |
Values/Range:
Default: [] |
Strategy Configuration
Sort by Coordinate Value on Reference Axis
Description
Compare the magnitude of X, Y, or Z axis components of target object poses in the current coordinate system.
Tuning Instructions
-
Reference coordinate axis: Specify the axis to compare.
-
Sorting order: Choose descending (high to low) or ascending (low to high).
-
Grouping threshold: After sorting, if the difference between adjacent values exceeds this threshold, they are grouped separately, and the next-level strategy only applies within the same group.
Strategy Parameters
-
Reference-Frame Axis: Reference-frame axis whose coordinate value is used for sorting.
Values/Range:
-
X Axis
-
Y Axis
-
Z Axis
Default: X Axis
-
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Difference Threshold: Difference threshold used when deciding whether adjacent results should be treated as equivalent.
Default: 1
Unit: mm
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 50000]
Default: 10000
Unit: mm
Sort by Angle to Target Axis
Description
Calculate the angle between a target object pose axis and a fixed vector in space.
Tuning Instructions
-
Object pose coordinate axis: Specify which axis of the target object pose to compare.
-
Target axis: Specify the fixed vector in space.
-
Sorting order: Choose descending (high to low) or ascending (low to high).
-
Grouping threshold: After sorting, if the difference between adjacent values exceeds this threshold, they are grouped separately, and the next-level strategy only applies within the same group.
Strategy Parameters
-
Target Object Pose Axis: Axis of the target object pose used for angle comparison.
Values/Range:
-
X Axis
-
Y Axis
-
Z Axis
Default: X Axis
-
Target Axis: Target direction vector or axis used for comparison.
Default: [0, 0, 1]
-
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Difference Threshold: Difference threshold used when deciding whether adjacent results should be treated as equivalent.
Default: 1
Unit: °
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 180]
Default: 180
Unit: °
Sort by Angle to Ray toward Target Object Pose
Description
Calculate the angle between the target object pose axis and the line from reference point to target object pose.
Tuning Instructions
-
Object pose coordinate axis: Specify the target object pose axis.
-
Reference point: Set the reference point coordinates.
-
Angle threshold: Filtering function, remove if angle is too large.
-
Grouping threshold: After sorting, if the difference between adjacent values exceeds this threshold, they are grouped separately, and the next-level strategy only applies within the same group.
Strategy Parameters
-
Target Object Pose Axis: Axis of the target object pose used for angle comparison.
Values/Range:
-
X Axis
-
Y Axis
-
Z Axis
Default: X Axis
-
Reference Point: Reference point used to form the comparison ray.
Default: [0, 0, 0]
-
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Difference Threshold: Difference threshold used when deciding whether adjacent results should be treated as equivalent.
Default: 1
Unit: °
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 180]
Default: 180
Unit: °
Sort by Distance to Reference Point
Description
Calculate the Euclidean distance between a target object pose and a fixed reference point in space.
Tuning Instructions
-
Specify reference point position: Input the fixed reference point coordinates.
-
Sorting order: Choose descending (high to low) or ascending (low to high).
-
Distance threshold: Filtering function, target object poses will be removed if the distance exceeds (or is less than) this threshold.
-
Grouping threshold: After sorting, if the difference between adjacent values exceeds this threshold, they are grouped separately, and the next-level strategy only applies within the same group.
Strategy Parameters
-
Reference Point Position: Reference point used for distance comparison.
Default: [0, 0, 0]
-
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Difference Threshold: Difference threshold used when deciding whether adjacent results should be treated as equivalent.
Default: 1
Unit: mm
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 50000]
Default: 10000
Unit: mm
Sort by Score
Description
Sort based on the scores output by the operator.
Tuning Instructions
-
Sorting order: Choose descending (high to low) or ascending (low to high).
-
Score threshold: Filtering function, points with scores below (or above, depending on sorting order) this threshold will be removed.
-
Grouping threshold: After sorting, if the difference between adjacent values exceeds this threshold, they are grouped separately, and the next-level strategy only applies within the same group.
Strategy Parameters
-
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Difference Threshold: Difference threshold used when deciding whether adjacent results should be treated as equivalent.
Default: 1
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 100]
Default: 1
Sort by Planar Distance to Reference Point
Description
First, add a reference point pose (the origin of the reference coordinate system). Specify an XOY/XOZ/YOZ plane as the reference plane. Project the target object pose onto this plane, calculate the distance from the projected point to the reference point, compare the distances, and sort them in a specific order. Object poses with a difference less than the grouping threshold are placed in the same group; if the difference is greater than the threshold, a new group is created for sorting.
Tuning Instructions
-
Reference Plane: The projection reference plane.
-
Reference Point Pose: The coordinate point used as a baseline.
-
Distance Threshold: The standard value used to judge if the projected distance meets the requirements.
-
Sort Order: Choose whether to sort in descending (high to low) or ascending (low to high) order.
-
Grouping Threshold: When the difference between two adjacent values is greater than this threshold, a new group is created, and the next-level strategy can only be sorted within the same "group".
Strategy Parameters
-
Reference Plane: Reference plane used for planar projection.
Values/Range:
-
XY Plane
-
XZ Plane
-
YZ Plane
Default: XY Plane
-
Reference Pose: Reference pose used as the origin of the reference frame.
Default: [0, 0, 0, 0, 0, 0]
-
threshold -
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 50000]
Default: 10000
Unit: mm
Sort by Planar Angle to Reference Axis
Description
First, add a reference point pose (the origin of the reference coordinate system). Specify an XOY/XOZ/YOZ plane as the reference plane. Project a specific axis of the target object pose onto this plane, calculate the angle between the projected axis and a specific axis of the reference coordinate system, and sort the target object poses accordingly. Select one coordinate axis of the target object pose as the comparison axis, specify any target axis, calculate the angle between the comparison axis of all target object poses and the target axis, compare the angles, and sort them in a specific order. Object poses with a difference less than the grouping threshold are placed in the same group; if the difference is greater, a new group is created for sorting.
Tuning Instructions
-
Reference Plane: The specified projection plane.
-
Reference Point Pose: The pose data of the set reference point.
-
Target Object Pose Axis Direction: The axis of the target object pose used for comparison.
-
Reference Axis Direction: The baseline axis of the reference system.
-
Angle Threshold: The standard value used to judge if the rotation angle meets the requirements.
-
Sort Order: Choose whether to sort in descending (high to low) or ascending (low to high) order.
-
Grouping Threshold: When the difference between two adjacent values is greater than this threshold, a new group is created, and the next-level strategy can only be sorted within the same "group".
Strategy Parameters
-
Reference Plane: Reference plane used for planar projection.
Values/Range:
-
XY Plane
-
XZ Plane
-
YZ Plane
Default: XY Plane
-
Reference Pose: Reference pose used as the origin of the reference frame.
Default: [0, 0, 0, 0, 0, 0]
-
Target Object Pose Axis: Axis of the target object pose used for angle comparison.
Values/Range:
-
X+
-
X-
-
Y+
-
Y-
-
Z+
-
Z-
Default: X+
-
Reference Axis: Reference-frame axis used for planar angle comparison.
Values/Range:
-
X Axis
-
Y Axis
-
Z Axis
Default: X Axis
-
threshold -
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 180]
Default: 180
Unit: °
Sort by Planar Angle to Reference Ray
Description
First, add a reference point pose (the origin of the reference coordinate system). Specify an XOY/XOZ/YOZ plane as the reference plane. Project the line connecting the reference point to the target object pose onto this plane, calculate the angle between the projected axis and the target object pose’s own axis, compare the angles, and sort them in a specific order. Object poses with a difference less than the grouping threshold are placed in the same group; if the difference is greater, a new group is created for sorting.
Tuning Instructions
-
Reference Plane: The specified projection plane.
-
Reference Point Pose: The pose data of the set reference point.
-
Target Object Pose Axis Direction: The axis of the target object pose used for comparison.
-
Angle Threshold: The standard value used to judge if the rotation angle meets the requirements.
-
Sort Order: Choose whether to sort in descending (high to low) or ascending (low to high) order.
-
Grouping Threshold: When the difference between two adjacent values is greater than this threshold, a new group is created, and the next-level strategy can only be sorted within the same "group".
Strategy Parameters
-
Reference Plane: Reference plane used for planar projection.
Values/Range:
-
XY Plane
-
XZ Plane
-
YZ Plane
Default: XY Plane
-
Reference Pose: Reference pose used as the origin of the reference frame.
Default: [0, 0, 0, 0, 0, 0]
-
Target Object Pose Axis: Axis of the target object pose used for angle comparison.
Values/Range:
-
X+
-
X-
-
Y+
-
Y-
-
Z+
-
Z-
Default: X+
-
threshold -
Sort Order: Order used when sorting computed values.
Values/Range:
-
Highest First
-
Lowest First
Default: Highest First
-
Grouping Interval: Interval used to split sorted results into groups.
Values/Range: [0, 180]
Default: 180
Unit: °
Strategy Parameters
-
Sort by Coordinate Value on Reference Axis:
-
Sort by Angle to Target Axis:
-
Sort by Angle to Ray toward Target Object Pose:
-
Sort by Distance to Reference Point:
-
Sort by Score:
-
Sort by Priority:
-
Sort by Distance to Bin Sides:
-
Sort by Angle to Bin Sides:
-
Sort by Tool Rotation Difference:
-
Sort by Planar Distance to Reference Point:
-
Sort by Planar Angle to Reference Axis:
-
Sort by Planar Angle to Reference Ray:
Target Object Poses Per Instance
Description |
Number of target object poses per object. |
Parameter Range |
Values/Range: [0, 400] Default: 1 |
Reference Pose List
Description |
Reference pose list used only inside the editor to help observe and configure strategies. |
Parameter Range |
Default: [] |