Pick Point Sorting V2

Description

Sorts the input pick point 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. V2 focuses on sorting and does not expose the legacy V1 threshold filtering capability.

Overview

Multi-stage sorting for grasp order optimization, layered picking, and path regularization.

Scenarios

  • Layered picking: Sort by Z height to pick upper-layer objects first.

  • Path regularization: Sort by X or Y so the robot follows a stable direction.

  • Pose preference: Sort by angle, distance, or score to prefer better grasp candidates.

  • Composite rules: For example, sort by height first and then by score inside the same layer.

Inputs and Outputs

Inputs

Pick Point Pose: Input list of candidate pick points.

Draw Scene (Optional): Used for on-screen display.

Outputs

Pick Point Pose: Sorted pick point list.

Debug pick point info: Detailed information including layered sorting and grouping.

Parameters

Open Editor

Description

Open the editor.

Parameter Range

Default: False

Pick Point Sorting Strategy

Description

Pick point sorting strategy list.

Parameter Range

Values/Range:

  • Sort by Coordinate Value on Reference Axis

  • Sort by Angle to Target Axis

  • Sort by Angle to Ray toward Pick Point

  • Sort by Distance to Reference Point

  • Sort by Score

  • Sort by Priority

  • Sort by Planar Distance to Reference Point

  • Sort by Planar Angle to Reference Axis

  • Sort by Planar Angle to Reference Ray

Default: []

Strategy Configuration

Sort by Coordinate Value on Reference Axis

Description

Compare the magnitude of X, Y, or Z axis components of pick points 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 pick point axis and a fixed vector in space.

Tuning Instructions

  • Pick point coordinate axis: Specify which axis of the pick point 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

  • Pick Point Axis: Axis of the pick point 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 Pick Point

Description

Calculate the angle between the pick point axis and the line from reference point to pick point.

Tuning Instructions

  • Pick point coordinate axis: Specify the pick point 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

  • Pick Point Axis: Axis of the pick point 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 pick point 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, pick points 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 Priority

Description

Sort based on the priority level of pick points.

Tuning Instructions

  • Sorting order: Choose descending (high to low) or ascending (low to high).

  • Priority threshold: Filtering function, remove points that do not meet the priority 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

  • 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, 10000]

Default: 10000

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 grasp point onto this plane, calculate the distance from the projected point to the reference point, compare the distances, and sort them in a specific order. Points 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 grasp point onto this plane, calculate the angle between the projected axis and a specific axis of the reference coordinate system, and sort the grasp points accordingly. Select one coordinate axis of the grasp point as the comparison axis, specify any target axis, calculate the angle between the comparison axis of all grasp points and the target axis, compare the angles, and sort them in a specific order. Points 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.

  • Pick Point Axis Direction: The axis of the grasp point 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]

  • Pick-Point Axis: Axis of the pick point 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 grasp point onto this plane, calculate the angle between the projected axis and the grasp point’s own axis, compare the angles, and sort them in a specific order. Points 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.

  • Pick Point Axis Direction: The axis of the grasp point 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]

  • Pick-Point Axis: Axis of the pick point 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 Pick Point:

  • 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:

Pick Points Per Instance

Description

Set how many top-ranked pick points to keep for each detected 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: []

Custom Coordinate System

Description

Defines the coordinate frame used by position-, axis-, and plane-related sorting strategies. Pick points are transformed into this frame before comparison.

Parameter Range

Default: [0, 0, 0, 0, 0, 0]

Debug Mode

Description

Enables layered sorting and grouping debug output.

Parameter Range

Default: False