Getting Started

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

single case sacks 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.

    single case sacks getting started click creat from lib
  3. In the Palletizing & Depalletizing category, click More at the bottom, and then click Yes in the pop-up window.

    single case sacks getting started get resource
  4. After acquiring the solution resources, select Sacks V2. Then, enter the solution name and path at the bottom, and finally click Create to download the single-case sack depalletizing solution.

    single case sacks getting started create solution

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

Set up Communication

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

The single-case sack depalletizing solution uses Standard Interface communication. For specific operations, please refer to Set up Standard Interface Communication.

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 Sacks

After communication setup and hand-eye calibration, you can use Mech-Vision to locate sacks. The workflow is shown in the figure below.

single case sacks 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.

    single case sacks getting started vision click connect camera
  2. Set the parameter group.

    Select Sack depalletizing from the drop-down list under Parameter Group.

    single case sacks 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 sack images. Click the single case sacks getting started vision click capture icon button on the interface top to capture an image. At this time, you can view the captured 2D image and point cloud of the sacks. Ensure that the 2D image is clear and that no points missing from the sack point cloud, and the edges are clear. The qualified 2D image and point cloud of sacks are shown on the left and right in the figure below, respectively.

    single case sacks getting started vision image and cloud
  4. Add the camera in Mech-Vision.

    Click the Capture Images from Camera Step, then disable the Virtual Mode option from the Step Parameters panel, and click Select camera.

    single case sacks getting started vision select camera

    In the pop-up window, click the single case sacks getting started vision connect camera before icon button on the right of the camera serial number. When the button turns into single case sacks getting started vision connect camera after icon, the camera is connected successfully.

    single case sacks getting started vision connect camera

    After that, you can click Select from and select the corresponding calibration parameter group, as shown below.

    single case sacks 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 single case sacks 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.

    single case sacks getting started vision run step camera

Obtain Sack Point Cloud

Set 3D ROI

  1. Select the Point Cloud Preprocessing Procedure, then click the Open the editor button in the Step Parameters panel to open the Set 3D ROI window.

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

    single case sacks getting started vision set 3d roi result

Segment Individual Sacks

  1. Select the Segment Masks of Individual Sacks Using Deep Learning Procedure and then click Open the editor button next to Roi Path to open the window of Set ROI.

    single case sacks getting started vision set dl roi
  2. Set the 2D ROI in the Set ROI window. The 2D ROI needs to cover the highest-layer sacks, leaving an appropriate margin of about one-third, as shown in the figure below.

    single case sacks getting started vision set dl roi result

Calculate the Pose of Individual Sacks

Select the Recognize Center Poses of Sacks Procedure and input the Sack Length, Sack Width, and Sack Height in the Step Parameters panel.

single case sacks getting started vision set size

Adjust Sack Poses

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

Output Sack Poses

The Procedure Out Step is used to output sack poses and dimensions. Click the data flow to view the relevant data.

single case sacks getting started vision output pose

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

Plan a Path

Given that the sacks have been located, you can use Mech-Viz for path planning. The process of path planning is shown in the figure below.

single case sacks getting started viz overall

The Standard Interface communication is used for path planning in the single-case sack depalletizing solution. For more information on path planning under the Master-Control communication, please download the Viz_Single_Case_Sacks.zip.

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 tool should be imported and configured so that its model can be displayed in the 3D simulation area 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 Mech-Viz, taking the form of a flowchart. After the scene objects and end tools are configured, you can adjust the workflow.

Set the Initial Robot Pose

Move the robot to approach the object picking area. When the robot does not block the camera’s FOV, set the JPs of the robot in the software according to those displayed on the robot teach pendant.

single case sacks getting started viz set capture pose

Set Vision Service Name

Click the Vision Look_1 Step and select the corresponding vision project Vis_Sacks in the drop-down list of Vision Service Name.

single case sacks getting started viz set vis service

Set Approach Waypoint and Departure Waypoint of Picking

Click the Approach Waypoint of Picking Step. Then, set the Reference Point under Move Relative to to Next waypoint, the Waypoint type to Tool, and Z under Coordinates to -300.

The Z value should be set according to actual situation, whose value, in general, is slightly greater than the actual thickness of sacks. In addition, the Z value should be highly consistent with the height of the Approach Waypoint of Picking in the robot program.

Similarly, click the Departure Waypoint of Picking Step. Then, set the Reference Point under Move Relative to to Previous waypoint, the Waypoint type to Tool, and Z under Coordinates to -300.

single case sacks getting started viz set near far pose

Simulate and Run the Project

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

    single case sacks 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 close 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 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.