Generate Trajectory from Surface Point Cloud
Function Description
This Step generates trajectory points from the input point cloud of the target object surface.
Usage Scenario
This Step is suitable for scenarios where trajectory points need to be generated directly from the point cloud of the target object surface. For example, when no CAD model is available, trajectory points can be generated from the point cloud of the target object captured by the camera. Trajectory points can also be generated in real time from the current point cloud when the incoming target object has deviations. This Step is generally preceded by point cloud preprocessing Steps and followed by trajectory processing Steps.
Input and Output
Input
| Input Port | Data Type | Description |
|---|---|---|
Surface Point Cloud |
PointCloud/XYZNormal |
The surface point cloud used to generate trajectory points. The point cloud should contain surface shape and normal information. This Step generates trajectory points based on the point cloud. |
Reference Point |
Pose[] |
Optional input. A reference point located outside the target object, used to determine the starting side of the trajectory. This Step starts generating trajectory points from the side closer to the reference point. |
Parameter Description
Trajectory Distribution Settings
| Parameter | Description |
|---|---|
Row Spacing |
Sets the distance between adjacent trajectory rows. A smaller row spacing results in denser trajectories and increases the number of generated trajectory points. |
Point Spacing |
Sets the distance between adjacent trajectory points on the same trajectory line. A smaller point spacing results in denser trajectory points and a more detailed trajectory. |
First Row Offset Distance |
Sets the inward offset distance of the first trajectory row from the edge of the target object point cloud. A larger value places the first trajectory row farther from the edge of the point cloud. Outward offsetting of the trajectory beyond the edge of the target object point cloud is not supported. |
End Extension Distance |
Sets the extension distance of each trajectory row in the start and end directions. This parameter ensures that the trajectory covers the working area beyond the boundary. A negative value indicates that both ends of the trajectory row are retracted inward. |
Lift Height Between Rows |
Sets the lift height of the robot end tool when moving from one trajectory row to the next. This parameter reduces the risk of collision between the end tool and the target object surface during cross-row movement. |
Trajectory Connection Method |
Sets how trajectories are connected between adjacent trajectory rows. This parameter determines the generation direction of each trajectory row and how the robot enters the next row after completing the current one. Value List: Z Shape, S Shape
|
Trajectory Row Direction Calculation Method |
Sets how the trajectory row direction is calculated. This parameter determines the direction along which each trajectory row is arranged. Value List: Auto, Reference Point X-Axis Direction
|
Trajectory Row Generation Method |
Sets how trajectory rows are generated. This parameter determines whether the Step generates multiple parallel lines or generates trajectory rows layer by layer along the point cloud profile. Value List: Parallel Straight Lines, Equidistant Profiles
|
Trajectory Gap Settings
| Parameter | Description |
|---|---|
Gap Width Threshold |
Sets the width threshold for determining whether a gap is large. A gap is considered large when the 3D distance across it exceeds this value. When set to 0, all gaps with a width greater than 0 are considered large. This parameter takes effect only when Gap Handling Strategy is set to Lift at large gaps only. |
Gap Lift Height |
Sets the lift height of the trajectory at gaps. When traversing a gap that requires lifting, the trajectory is lifted by this height. If this value is less than or equal to 0, no lift points are generated for any Gap Handling Strategy, and the trajectory transitions across the gap by surface interpolation. |
Gap Handling Strategy |
Sets how detected gaps are handled. Value List: Lift at All Gaps, Lift at Large Gaps Only, Ignore All Gaps
|
Point Cloud Processing Settings
| Parameter | Description |
|---|---|
Mask Hole Filling Strength |
Sets the initial kernel size for morphological processing of the mask using closing and opening operations. Closing fills holes inside the mask and connects nearby broken regions, but may expand the boundary outward. Opening removes edge burrs and small isolated regions, but may shrink the boundary inward or remove small structures. A larger value produces a stronger effect. The Step starts from this value and gradually reduces the kernel size if the Minimum Retention Ratio of Original Region is not met, limiting changes to the original region. |
Mask Roughness |
Sets the grid resolution used to generate the mask from the point cloud projection. This value must be greater than 0. A larger value results in a rougher representation of the surface contour in the mask, while a smaller value results in a finer mask. |
Min Retention Ratio of Original Region |
Sets the minimum proportion of the original region that must be retained after morphological operations are performed on the mask. The value range is [0, 1]. This parameter limits the extent to which the morphological operations alter the original region. A higher ratio better preserves the shape of the original point cloud region, while a lower ratio allows greater adjustment of the region. |
Trajectory Point Pose Settings
| Parameter | Description |
|---|---|
Trajectory Point Z-Axis Angle |
Sets the tilt angle of the trajectory point Z-axis relative to the surface normal, in degrees. A value of 90° indicates that the trajectory point Z-axis coincides with the surface normal, meaning it is perpendicular to the surface. The Z-axis rotates around the trajectory direction. The farther the value is from 90°, the greater the tilt. Values greater than and less than 90° tilt the Z-axis toward opposite sides. |
Surface Normal Source |
Sets the source of the surface normal used to calculate the initial direction of the trajectory point Z-axis. Value List: Calculate from Local Point Cloud, Calculate from Overall Point Cloud
|
Flip Surface Normal |
When enabled, flips the surface normal calculated based on Surface Normal Source. This option is suitable when the generated trajectory point Z-axis points in the opposite direction from the expected direction. |
Forward Alignment Axis |
Sets the trajectory point coordinate axis that aligns with the trajectory direction. Value List: X-Axis, Y-Axis
|
Alignment Axis Orientation |
Sets whether the orientation of the alignment axis changes with the trajectory direction of each trajectory row. Value List: Follow Trajectory Direction, Maintain Consistent Direction
|