Generate Rect Path
Function
This Step generates a rectangular path based on the input object point cloud and fits the four edges of the point cloud’s bounding rectangle through lines and corner smoothing.
Usage Scenario
This Step is typically used in edge gluing applications for rectangular hatches and glass surfaces, generating smooth gluing trajectories along object edges.
Input and Output
Parameter Description
Reliable Contour Points Settings
| Parameter | Description |
|---|---|
Max Distance from Contour Point to Line |
Parameter description: This parameter is used to filter the maximum distance threshold from contour points to a line.
|
Max Distance from Contour Point to Rectangle Corner |
Parameter description: This parameter is used to filter the maximum distance threshold from contour points to rectangle corners.
|
Only Rect Nearest Contour |
Parameter description: When checked, only the contour points closest to the reference rectangle are detected.
|
Increment of Closest to Line Dis |
Parameter description: This parameter is used to increase the distance threshold when calculating reliable contour points.
|
Smoothing Settings
| Parameter | Description |
|---|---|
Smooth Contour Points |
Parameter description: This parameter is used to control whether to smooth the obtained high-quality contour points.
|
Contour Smooth Gaussian Filter Radius |
Parameter description: This parameter is used to set the radius of the Gaussian filter used for smoothing.
|
Contour Smooth Gaussian Filter Sigma |
Parameter description: This parameter is used to set the standard deviation of the Gaussian filter used for smoothing.
|
Accurate Corner Detection
| Parameter | Description |
|---|---|
Calc Accurate Corner Method |
Parameter description: This parameter is used to set the exact calculation method used to calculate the corners of the rectangle. Value list:
|
Distance Calculation Method in Line Fitting |
Parameter description: This parameter is used to select the distance calculation method when fitting a line through the contour points of each edge, then obtaining the intersection points of lines as accurate corners. Value list:
Default value: DIST_L1 |
Corner Point Adjustment Settings
| Parameter | Description |
|---|---|
Corner Arrangement Direction |
Parameter description: This parameter is used to adjust the clockwise/counterclockwise direction of corners.
|
Trajectory Points (2D) Settings
| Parameter | Description |
|---|---|
Initial Pixel Spacing for 2D Points |
Parameter description: This parameter is used to set the initial pixel interval for all 2D waypoints. Smaller values generate more waypoints, while larger values generate fewer path points.
|
Ratio of Last Two Points to Interval |
Parameter description: This parameter is used to set the ratio relationship between the last interval and the set interval.
|
Number of Points |
Parameter description: This parameter is used to set the number of trajectory points between line endpoints and corners.
|
Point Interval on Line |
Parameter description: This parameter is used to regenerate line trajectory points using this interval.
|
Erosion Settings
| Parameter | Description |
|---|---|
Left Side Erode Dis |
Parameter description: This parameter is used to set the erosion distance on the left side of the rectangle.
|
Bottom Side Erode Dis |
Parameter description: This parameter is used to set the erosion distance on the bottom side of the rectangle.
|
Right Side Erode Dis |
Parameter description: This parameter is used to set the erosion distance on the right side of the rectangle.
|
Top Side Erode Dis |
Parameter description: This parameter is used to set the erosion distance on the top side of the rectangle.
|
Trajectory Points (3D) Settings
| Parameter | Description |
|---|---|
Neighbour Depth Search Size |
Parameter description: This parameter is used to set the kernel size when searching neighborhood depth.
|
Use Point Cloud Normal as Pose Orientation |
Parameter description: This parameter is used to control whether to use point cloud normals as the pose direction.
|
Start Point Adjustment Settings
| Parameter | Description |
|---|---|
Adjust Input Poses by Starting Point |
Parameter description: This parameter is used to control whether to adjust the start point position to the middle of the corresponding edge according to the input reference pose.
|
Robot Movement Settings
| Parameter | Description |
|---|---|
Is Send M Ps to Mech-Viz |
Parameter description: This parameter is used to control whether to send path points to Mech-Viz for visualization.
|
Corner Motion Type |
Parameter description: This parameter is used to set the motion type of the robot at corners. |
Corner Vel |
Parameter description: This parameter is used to set the velocity of the robot at corners.
|
Corner Acc |
Parameter description: This parameter is used to set the acceleration of the robot at corners.
|
Corner Blend Radius |
Parameter description: This parameter is used to set the blending radius of the robot at corners.
|
Line Motion Type |
Parameter description: This parameter is used to set the motion type of the robot on line segments. |
Line Vel |
Parameter description: This parameter is used to set the velocity of the robot on line segments.
|
Line Acc |
Parameter description: This parameter is used to set the acceleration of the robot on line segments.
|
Line Blend Radius |
Parameter description: This parameter is used to set the blending radius of the robot on line segments.
|