Getting Started

This section will introduce how to easily depalletize turnover boxes from a beginner’s perspective. The overall process is shown in the figure below.

turnover box getting started overall

Acquire the Solution

  1. Open Mech-Vision.

  2. In the Welcome interface of Mech-Vision, click Create from Solution Library to open the Solution Library.

    turnover box getting started click creat from lib
  3. Click Palletizing & Depalletizing in the Solution Library, then click on More at the bottom, and click Yes in the pop-up window.

    turnover box getting started get resource
  4. After acquiring the solution resources, select Turnover Boxes (with Production Interface). Then, fill in the Solution name and Path at the bottom, and finally click Create to download the turnover box depalletizing solution.

    turnover box getting started create solution

    Once the solution is downloaded, it will be automatically opened in Mech-Vision.

Set up Communication

When deploying a Mech-Mind vision solution, you need to set up the communication between the Mech-Mind Vision System and the robot side (robot, PLC or host computer).

The turnover box depalletizing solution uses Standard Interface communication. For specific operations, please refer to Standard Interface Communication Configuration.

Hand-Eye Calibration

Hand-eye calibration establishes the transformation relationship between the camera and robot reference frames. With this relationship, the object pose determined by the vision system can be transformed into that in the robot reference frame, which guides the robot to perform its tasks.

Please refer to Hand-Eye Calibration Guide to complete hand-eye calibration.

Every time the camera is mounted, or the relative position of the camera and the robot changes after calibration, it is necessary to perform hand-eye calibration again.

Locate Turnover Boxes

After completing the communication configuration and hand-eye calibration, you can use Mech-Vision to recognize turnover boxes. The process for turnover box recognition is shown in the figure below.

turnover box getting started vision overall

Connect to the Camera and Capture Images

  1. Connect to the camera.

    Open Mech-Eye Viewer. Find the camera to be connected and click Connect.

    turnover box getting started vision click connect camera
  2. Set the parameter group.

    Click the dropdown arrow next to the Parameter Group on the right-hand side and select the Typical turnover box depalletizing.

    turnover box getting started vision set param group

    In addition to the default parameter group, Mech-Eye Viewer will also display parameter groups of other typical solutions.

  3. Capture Images.

    After the camera is successfully connected and the parameter group is set, you can start capturing turnover box images. Click the turnover box getting started vision click capture icon button on the top to capture a single image. At this time, you can view the captured 2D image and point cloud of the turnover box. Ensure that the 2D image is clear, the turnover box point cloud is intact, and the edges are clear. The qualified 2D image and point cloud of the turnover box are shown on the left and right in the figure below respectively.

    turnover box getting started vision image and cloud
  4. Add a camera in Mech-Vision.

    Select the Capture Images from Camera Step, disable the Virtual Mode option, and click Select camera on the Step Parameters tab.

    turnover box getting started vision select camera

    In the pop-up window, click the turnover box getting started vision connect camera before icon button on the right of the Camera ID. When the button turns into turnover box getting started vision connect camera after icon, the camera is connected successfully.

    turnover box getting started vision connect camera

    After the camera is connected successfully, you can click Select from and select the corresponding camera calibration parameter group, as shown below.

    turnover box getting started vision select param group

    Once the above settings are complete, you can connect to a real camera. Other parameters can remain at their default values. Click the turnover box getting started vision run step camera icon button on the right of the “Capture Images from Camera” Step to run this Step. If no error message occurs, the camera is connected successfully and images can be captured normally.

    turnover box getting started vision run step camera

Extract Point Cloud of Turnover Boxes

  1. Select the Point Cloud Preprocessing and Generate Edge Point Cloud Procedure, then click the Open the editor button on the Step Parameters tab to open the Set 3D ROI window.

    turnover box getting started vision click set 3d roi
  2. In the Set 3D ROI window, drag the default generated 3D ROI in the point cloud display area to a proper position. Make sure that the highest and lowest areas of the turnover box stack are within the green box at the same time, and that the green box does not contain other interfering point clouds, as shown in the following figure.

    turnover box getting started vision set 3d roi result

Calculate Turnover Box Poses Using 3D Matching

Make the Point Cloud Model

The specific methods for making surface point cloud models and edge point cloud models are as follows.

Make Surface Point Cloud Model
  1. Generate point cloud model. This feature generates a point cloud from depth map(s) acquired by the camera. For specific operation, please refer to Generate a Point Cloud Model from Image Acquired by the Camera.

  2. Edit the point cloud model. Ensure that only one turnover box point cloud is left after the outliers and point cloud of other turnover boxes are removed. For specific operation, please refer to Edit Point Cloud Model.

    turnover box getting started vision check surface models
Make Edge Point Cloud Model

After making the surface point cloud model, you can use this to create edge point cloud model.

  1. Select surface model in the resource list, and then click turnover box getting started vision generate edge model icon. You can use the “Estimate point could edges by 3D methods” to generate turnover box edge model.

    turnover box getting started vision generate edge model
  2. The generated edge point cloud model is as follows.

    turnover box getting started vision check edge models

You can rename the point cloud model files by double-click them in the resource list. For example, you can rename them as Edge_model_1、Surface_model_1 for distinction.

Add Pick Point

After you finish making the point cloud model, you can add a pick point for it.

  1. Select surface model in the resource list, click turnover box getting started vision add pose icon to add pick point for surface point cloud model. The position and orientation of the pick point should then be adjusted to ensure that the pick point is as close as possible to the center of the surface point cloud model (as shown in the left figure below) and that the Z-axis is perpendicular to the surface of the model (as shown in the right figure below).

    turnover box getting started vision check pick pose
  2. After adding the pick point of the surface point cloud model, right-click the pick point in the resource list, and then click Copy.

    turnover box getting started vision copy pick pose
  3. You can quickly add a pick point for an edge point cloud model by dragging the copied pick point below the edge point cloud model in the resource list.

    turnover box getting started vision add edge pick pose

    If you need to adjust the pick point later, you need to adjust the pick point of both the Edge Point Cloud Model and Surface Point Cloud Model.

Set the Layer Height

The Layer Height Indicates the height range of the highest layer area. Once the height range of the objects on the highest layer in the north-to-south direction is set, the object poses within this height range will be output.

turnover box getting started vision set layer hight

If there are object poses of other layers included in this range, you should adjust the value of Layer Height until there are only poses of objects on the highest layer within the range.

turnover box getting started vision explain layer hight

Adjust Turnover Box Poses

The Procedure is used to transform turnover box poses from the camera reference frame to the robot reference frame, adjust pose orientations, sort poses, and filter unqualified poses. There is no need to set parameters for this Procedure.

Output Turnover Box Poses

As Path Planning Step is used in the turnover box depalletizing solution for path planning, the turnover box poses are then input to the Path Planning Step. You can click the data flow to check relevant data.

turnover box getting started vision output pose

So far, you have learned how to get started with turnover box locating.

Path Planning

The Path Planning Tool under the Path Planning Step is used in the turnover box depalletizing solution for path planning. Click Open the editor in the Step Parameters of Path Planning to open Path Planning Tool.

The process of path planning is shown in the figure below.

turnover box getting started viz overall

Configure Scene Objects

Scene objects are introduced to make the scene in the software closer to the real scenario, which facilitates the robot path planning. For specific operations, please refer to Configure Scene Objects.

Configure the Tool

The end tool should be configured so that its model can be displayed in the 3D simulation space and used for collision detection. For specific operations, please refer to Configure the Tool.

Adjust the Workflow

The workflow refers to the robot motion control program created in the form of a flowchart. After the scene objects and end tools are configured, you can adjust the workflow.

Adjust the Above-Bin Fixed Waypoint

  1. Select the “ Above-Bin Fixed Waypoint 1” Step, and then choose the “JPs” of the “Robot pose type” in the Step Parameters on the right. Then you can set the values of “JPs” according to the picking poses when the real robot is above the bin.

    turnover box getting started viz set bin up 1
  2. Select the “ Above-Bin Fixed Waypoint 2” Step, and then choose the “JPs” of the “Robot pose type” in the Step Parameters on the right. Then you can set the values of “JPs” according to the picking poses when the real robot is above the bin.

    turnover box getting started viz set bin up 2

Configure Collision Detection

Collision configuration is used to detect and avoid possible collisions. By default, collisions between any two of the robot, tool, and scene objects will be detected. Once “Enable collision detection with point cloud” is enabled, the collision between the input point cloud and the tool will be detected.

Configure Point Cloud Collision Detection

  1. Click Collision Configuration on the toolbar to open the “Point Cloud Collision Detection Configuration” window.

    turnover box getting started viz click collision
  2. Enable collision detection with point cloud, and then set relevant parameters according to actual situation.

    turnover box getting started viz open collision

Simulate and Run the Project

  1. Click the Simulate button on the toolbar to simulate the Mech-Viz project.

    turnover box getting started viz simulation
  2. If the simulation performance meets expectations, a Standard Interface program can be used to run the real robot.

    Please refer to the picking example program and interface commands in Standard Interface communication to learn how to write the robot program.

It is recommended that the robot should move at a low speed and that you pay attention to the robot motion trajectory. In an emergency, press the emergency stop key on the teach pendant.

So far, you have learned how to get started with the path planning.

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.