Import Processed Point Cloud to Generate Point Cloud Model and Configure Trajectory

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

In this workflow, you can import processed point cloud data to generate a point cloud model and configure trajectories.

Under the Import processed point cloud workflow in target object editor, click Select, and then set the target object name to enter the configuration process. The overall process is shown below.

overview
  1. Import project information: By selecting a project and the point cloud and pick point source, the tool automatically generates a point cloud model.

  2. Edit model: Edit the generated point cloud model, including calibrating the object center point and configuring the point cloud model, for better 3D matching.

  3. Set trajectory: Create and adjust trajectories on the edited point cloud model.

  4. Set collision model (optional): Generate a collision model for collision detection during path planning.

The following sections describe the configuration process.

Import Project Information

To obtain information from the project, select the corresponding project, the Step port outputting the surface/edge point cloud in the project, the reference frame to define point cloud, and the Step port outputting the pick point. Then click Preview to view the point cloud model in the visualization area on the left.

When selecting the reference frame for defining the point cloud, ensure that it matches the reference frame of the scene point cloud used in the subsequent 3D matching Step.

Edit Point Cloud Model

After the point cloud model is generated, it should be edited for better 3D matching.

Edit Point Cloud

Remove Interference Point Cloud

If there are interference points around the point cloud model, you can remove them by editing the point cloud. For details, refer to Edit Point Cloud.

Select Feature Point Cloud

  • When making the edge point cloud model

    In applications, the target objects usually come in various poses, corresponding to different point clouds. Only the point cloud most representative of the edge feature of the target object should be extracted and retained in the point cloud model.

    The figure below shows the edge point cloud model of the tube. The tube is symmetrical and similar to a cylinder. On the lateral area of the cylinder, only the point cloud of the edges is retained. Meanwhile, to ensure accurate positioning of the ends of the tube, the point cloud of the edges of the two ends of the tube is retained.

    select feature round tube edge

    The table below shows the edge point clouds of the tube at different poses.

    Tube poses Edge point clouds (in yellow)

    select feature round tube pose 1

    select feature round tube edge 1

    select feature round tube pose 2

    select feature round tube edge 2

    select feature round tube pose 3

    select feature round tube edge 3

    If the target object (such as a sheet metal part) is asymmetrical, the edge point clouds from all viewing angles should be retained.

    select feature sheet metal parts edge
  • When making the surface point cloud model

    The surface point cloud model is critical in verifying the pose correctness and calculating the pose confidence. Therefore, it is recommended to use the complete surface point cloud of the target object when creating the surface point cloud model to ensure the validity. The figure below shows the surface point cloud model of the tube.

    select feature round tube surface

Calibrate Object Center Point

After an object center point is automatically calculated, you can calibrate it based on the actual target object in use. Select a calculation method under Calibrate center point by application, and click Start calculating to calibrate the object center point.

Method Description Operation Application Scenario

Re-calculate by using original center point

The default calculation method. Calculate the object center point according to the features of the target object and the original object center point.

Select Re-calculate by using original center point, and click the Start calculating button.

In general, this method can be used to calculate the center point of all target objects.

Calibrate to center of symmetry

Calculate the object center point according to the target object’s symmetry.
After calculating the symmetry of the current model, the object center point will be set to the center of symmetry.

Select Calibrate to center of symmetry and click the Start calculating button.

This method can be used to calculate the object center point when filtering matching results by target object symmetry.

Calibrate to center of feature

Calculate the object center point according to the selected Feature type and the set 3D ROI.

  1. Select the Feature type according to the geometric features of the object, and the tool will calculate the object center point according to the feature type.

  2. (Optional) Enable Use 3D ROI and select the geometric features on the target object with the 3D ROI.

  3. Click the Start calculating button.

Target objects with obvious geometric features
calibrate to center of feature example

Reset to Original Point Cloud

During editing, if the current point cloud result is unsatisfactory, click the [Reset button to undo all editing operations and restore the point cloud to its initial state when entering the "Edit model" step.

After resetting the point cloud, you need to recalculate the object center point and update the point cloud model configuration.

Configure Point Cloud Model

To better use the point cloud model in the subsequent 3D matching and enhance matching accuracy, the tool provides the following two options for configuring the point cloud model. You can enable the Configure point cloud model feature as needed.

Calculate Poses to Filter Matching Result

Once Calculate poses to filter matching result is enabled, more matching attempts will be made based on the settings to obtain matching results with higher confidence. However, more matching attempts will lead to longer processing time.

Two methods are available: Auto-calculate unlikely poses and Configure symmetry manually. In general, Auto-calculate unlikely poses is recommended. See the following for details.

Method Description Operation

Auto-calculate unlikely poses

Poses that may cause false matches will be calculated automatically. During the calculation process, a set of candidate poses is automatically generated based on equivalent or ambiguous poses that may arise due to the target object’s rotational symmetry about the Z-axis. In subsequent matches, poses that successfully match these poses will be considered unqualified and filtered out.

  1. ClickCalculate unlikely poses to calculate potentially mismatched poses.

  2. (Optional) If you think a pose in the list will not cause a false match, click the × icon to remove it from the list.

Note that the calculation results will not be automatically updated when the point cloud model is modified. If there are any modifications, please click "Calculate unlikely poses" again to update the results.

Configure symmetry manually

Calculate potentially mismatched poses based on the manually set parameters such as the Order of symmetry and Angle range. In subsequent matches, poses that successfully match these poses will be considered unqualified and filtered out.

Select the symmetry axis by referring to Rotational Symmetry of Target Objects, and then set the Order of symmetry and Angle range.

After the symmetry is set manually, the symmetry setting of the target object takes effect in the Coarse Matching, Fine Matching, and Extra Fine Matching (if enabled) processes in the 3D Matching Step.

After enabling the features above, if you want them to take effect in subsequent matching, you must configure the corresponding parameters in subsequent matching Steps.

  • If the "3D Matching" Step is used, under Adjust or Filter Poses from Coarse Matching  Select Strategy, select Filter potentially false poses. This parameter appears when parameter tuning level is Advanced or Expert.

  • If the "3D Trajectory Recognition" Step is used, under the target object selection and recognition process, go to Adjust or filter poses from coarse matching  Select strategy, and select Filter potentially false poses. This parameter appears in Advanced mode.

Set Weight Template

During target object recognition, setting a weight template highlights key features of the target object, improving the accuracy of matching results. The weight template is typically used to distinguish target object orientation. The procedures to set a weight template are as follows.

A weight template can only be set when the Point cloud display settings is set to Display surface point cloud only.

  1. Click Edit template.

  2. In the visualization area, hold and press the right mouse button to select a part of the features on the target object. The selected part, i.e., the weight template, will be assigned more weight in the matching process.

    By holding Shift and the right mouse button together, you can set multiple weighted areas in a single point cloud model.

    set weight template
  3. Click Apply to complete setting the weight template.

For the configured weight template to take effect in the subsequent matching, go to the “Model Settings” parameter of the “3D Matching” Step, and select the model with properly set weight template. Then, go to “Pose Filtering” and enable Consider Weight in Result Verification. The “Consider Weight in Result Verification” parameter will appear after the “Parameter Tuning Level” is set to Expert.

Now the point cloud model editing is complete. Click Next to set trajectories for the point cloud model.

Set Trajectory

Create Trajectory

The tool provides two ways to create trajectories: Manual creation and Automatic creation.

In this workflow, Manual creation is recommended for creating trajectories on the point cloud model.

Create Trajectory Manually

In the "Set trajectory" process, click Manual creation to enter the "Manual creation" interface. The detailed procedure is as follows.

  1. Pick trajectory points.

    Hold Shift, and right-click on the target object to pick trajectory points. The tool automatically connects picked points into a trajectory.

    create trajectory manual
  2. Adjust trajectory points.

    Created trajectory points are displayed in the list on the right side of the visualization area. If trajectory points do not meet requirements, you can adjust them as follows.

    Operation Description

    Adjust trajectory point position and orientation

    Select the trajectory point, and adjust related values in "Trajectory point settings" to change its position and orientation.

    Adjust trajectory point order

    Drag trajectory points in the list to reorder them.

    Add trajectory point

    Click Create. The tool adds a new trajectory point after the last trajectory point.

    Align trajectory points

    Select at least three trajectory points in the list, and click Align. The Z-axis of the selected points will be perpendicular to the fitted plane, and the X-axis will point to the next trajectory point.

    Interpolate trajectory points

    If picked trajectory points are unevenly distributed, you can interpolate points for more uniform distribution. + Select two trajectory points, set Maximum distance, and click Interpolate. When the distance between the two points exceeds this value, the tool automatically interpolates trajectory points between them and replaces other points between the two selected points.

  3. Save trajectory.

    After trajectory creation is complete, click Save and apply to save the trajectory.

Create Trajectory Automatically

In the "Set trajectory" process, click Automatic creation to enter the "Automatic creation" interface. The detailed procedure is as follows.

  1. Set target area.

    Click Edit  Create in sequence, and set the target area in the visualization area by boxing the points where trajectories should be generated.

  2. Generate trajectory automatically.

    Click Generate trajectory, and the tool will automatically generate trajectories.

  3. Adjust trajectory points.

    The trajectory list shows the auto-generated trajectories. If needed, you can simplify and smooth trajectories by adjusting the following parameters.

    • Trajectory simplification

      You can simplify trajectories by adjusting the following parameters. This reduces the number of trajectory points and simplifies trajectory shape while preserving overall geometry as much as possible. It is suitable for scenarios that require lower trajectory complexity, such as reducing subsequent processing time and improving robot motion efficiency.

      Parameter Description

      Maximum deviation

      The maximum allowed deviation when simplifying trajectories. The larger the deviation, the fewer points remain, but trajectory shape may be distorted.

      Mandatory retention spacing

      If the distance between two points in the original trajectory is greater than this value, both points are retained.

    • Trajectory smoothing

      You can smooth trajectories by adjusting the following parameters. Smoothing trajectory points can reduce noise impact and generate smoother trajectories. It is suitable for scenarios with noisy trajectory points, improving smoothness and continuity.

      Parameter Description

      Gaussian sigma

      Controls smoothing strength. The larger the value, the smoother the trajectory, but details may be lost.

      Smoothing radius

      Defines the window size for smoothing, determining the range of neighboring points involved in smoothing calculation.

      Distance threshold

      Determines whether neighboring points around the point to be smoothed participate in smoothing calculation. If the distance from a neighboring point to the point being smoothed exceeds this value, that neighboring point is excluded. The default value is recommended.

  4. Save trajectory.

    After trajectory creation is complete, click Save and apply to save trajectories.

Adjust Trajectory

After creating trajectories, you can further adjust them.

  • Adjust trajectory line

    After creating a trajectory, if you need to offset the trajectory by a certain distance along the Z-axis to better meet practical operation requirements, select a trajectory line in the trajectory list and set Z-axis offset distance to offset that trajectory line along the Z-axis.

  • Adjust trajectory points individually

    Select a trajectory point in the trajectory list, and then adjust related values in the parameter settings area to change its position and orientation.

For more trajectory adjustment operations, refer to Adjust Trajectory.

Preview End Tool

After trajectories are created, you can preview the positional relationship between the end tool and trajectories as follows.

  1. Ensure the Mech-Viz project is in the current solution.

    To ensure target object editor can obtain end tool information from Mech-Viz, refer to Export Project to Solution and move the Mech-Viz project to the current solution.

  2. Add an end tool.

  3. Preview and enable tool.

    After an end tool is added, tool information is automatically updated to the tool list in target object editor. According to actual needs, select a tool in the tool list to preview the positional relationship between trajectory and tool during actual trajectory operation in the visualization area (as shown below), or check the end tool for actual trajectory operation.

    If you modified the tool in Mech-Viz, save changes in Mech-Viz to update the tool list in target object editor. In addition, enabling the corresponding end tool for the trajectory in target object editor is required for successful simulation in Mech-Viz.
    configure picking example

Set Collision Model (Optional)

The collision model is a 3D virtual object used in collision detection for path planning. You can configure the following settings on the collision model according to the actual situation.

Set Collision Model

The current workflow supports two collision model generating modes. You can select the appropriate mode based on actual requirements. After selection, the tool automatically generates point cloud cubes for collision detection.

Generating mode Description Operation

Use STL model to generate point cloud cube

Low model accuracy, fast collision detection.

  1. Select the STL model.

    Click Select file, select an STL model, and use it to generate the point cloud cube. You can use the "Display collision model" feature to preview the generated collision model.

  2. Align models.

    Aligning the collision model with the point cloud model of the target object ensures effective collision detection. You can click Auto-align point cloud model and collision modell to achieve the alignment with the point cloud model of the target object. If the auto-alignment result is not as expected, manually adjust the collision model pose.

Use point cloud model to generate point cloud cube

High model accuracy, slow collision detection.

After selecting this mode, the tool automatically generates a collision model from the current target object’s point cloud model. You can use the "Display collision model" feature to preview the generated collision model.

Configure Symmetry of Held Target Object

Rotational symmetry is the property of the target object that allows it to coincide with itself after rotating a certain angle around its axis of symmetry. When the “Waypoint type” is “Target object pose”, configuring the rotational symmetry can prevent the robot’s tool from unnecessary rotations while handling the target object. This increases the success rate of path planning and reduces the time required for path planning, allowing the robot to move more smoothly and swiftly.

Select the symmetry axis by referring to Rotational Symmetry of Target Objects, and then set the Order of symmetry and Angle range.

Now the collision model setup is complete. Click Save to save the target object to Solution folder\resource\workobject_library, and then use it in subsequent 3D matching Steps.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.