Pick and Place

You are currently viewing the documentation for version 1.7.5. To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ To use the latest version, visit the Mech-Mind Download Center to download it.

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

After having obtained the cartons’ poses using a Mech-Vision case project, you can then build a workflow for the Mech-Viz project to guide the robot to pick and place cartons repeatedly.

Video Tutorial: Pick and Place

The following figure shows the process of building a project.

viz project workflow

Configure the Robot and Scene

To avoid collision with surrounding objects during robot picking and placing, you need to add the tool model, and scene model to the project for collision detection. The process is shown in the figure below.

viz project add model workflow

Import and Configure the Tool Model

  • Tool refers to the device mounted on the robot end that performs processing/picking jobs.

  • In this tutorial, the tool is a gripper containing an array of suction cups.

The end tool should be imported and configured so that its model can be displayed in the 3D simulation space and used for collision detection.

Import the Tool Model

  1. Click + in Resources  Model Library.

    viz project click add model

    Project resources refer to various fundamental resources used in the project, including the robot, tools, workpieces, and scene objects.

  2. In the prompted window, select the collision model file in .obj format, and then click Open.

    viz project select obj model
  3. After the model is imported, you can see the imported model in the model library.

    viz project check obj model

Configure the Tool

  1. Click + in Resources  Tools.

    viz project click add end tool
  2. In the prompted window, enter the tool name, select the imported tool model as the collision model and visualization model, and then click OK.

    viz project configurate add end tool
  3. After the tool is configured, you can view the configured tool in the 3D simulation space, as shown below.

    viz project check end tool

Adjust the Tool

As shown above, the pose of the tool in reference to the robot is obviously wrong. So, you need to adjust the pose of the tool.

  1. Double-click the tool model in the model library.

    viz project double click end tool
  2. In the prompted window, adjust the TCP (Tool Center Point).

    viz project adjust tcp

    The TCP is usually on the tip of the tool. In this tutorial, the TCP in the center points of the suction cups.

  3. The tool’s poses before and after the adjustment are shown below.

    viz project adjust tcp result

Import and Configure the Scene Model

Scene objects are imported and configured to make the scene in the software closer to the real scenario, which facilitates the planning of the robot motion path.

Import the Scene Model

  1. Click + in Resources  Model Library.

    viz project click add model 2
  2. In the prompted window, select the scene object model file, and then click Open.

    viz project select scenes model
  3. After the model is imported, you can see the imported model in the model library.

    viz project check scenes model

Configure the Scene Model

  1. Click + in Resources  Scene Objects.

    viz project click add scenes object
  2. In the prompted window, enter the object name, select “Custom model” as the “Scene model”, select the imported scene object model as the collision model and visualization model, and then click OK.

    viz project adjust scenes object
  3. After configuration, the scene object is displayed in the 3D simulation space.

    viz project check scenes object interface

    To view the scene model better, you can hide the floor.

    viz project close floor

After configuring the models, click Sync Robot on the toolbar to keep the simulated robot’s pose consistent with that of the real robot.

Build a Workflow

After configuring the models, you can now start to build a workflow. Drag a step from the step library to the graphical programming workspace, set the parameters of the Steps, and connect Steps to achieve preset program functions.

  • The workflow refers to the robot motion control program built in the flowchart form in Mech-Viz.

  • A Step refers to a robot programming function module.

Introduction to the Project Workflow

The built workflow is shown below.

viz project workflow idea

Move to “Initial Pose”

The initial pose is the initial point of the robot motion, and it also should be a safe position. At this pose, the robot should be away from the objects to pick and the surrounding devices, and should not block the camera’s FOV.

After the robot arrives at the self-defined initial pose, select Fixed-Point Move in the Step Library, and drag it to the graphical programming workspace, rename it as “initial pose”. Then click Sync Robot on the toolbar to record the current pose of the robot for this Step.

viz project add move capture

Trigger Image Capturing and Vision Processing

Step

Vision Look

Description

Start the Mech-Vision project to obtain the vision recognition result.

Operation

Find the “Vision Look” Step in the Step Library, and drag it to the graphical programming workspace.

Parameter Settings

Select Single_Case_Cartons from the Vision Name drop-down list.

Image

viz project visual recongnize

After the “Vision Look” Step, add the Check Look Step to check whether there is any vision result.

Step

Check Look

Description

Check whether there is any vision result.

Operation

Find the “Check Look” Step in the Step Library, and drag it to the graphical programming workspace.

Parameter Settings

Keep the default parameter settings.

Move the Robot to the Approach Waypoint of Picking

When picking cartons, if the robot directly moves from the initial pose to the picking waypoint, collision with the cartons may occur. After obtaining the vision recognition result, you can then use the Relative Move step to move the robot to the approach waypoint.

Step

Relative Move

Description

Move according to the vision recognition result.

Operation

Find the “Relative Move” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Approach waypoint 1”.

Parameter Settings

Set Relative Move Dependency to Next waypoint; set Waypoint type to Tool, and set the Z coordinate to a proper value, such as -300mm.

Image

viz project approach point 1

viz project approach point 2

Pick the Carton

After the robot has arrived at the approach waypoint, you can control the robot to pick cartons. The picking process can be divided into two steps.

  1. Step 1: Use the Vision Move Step to control the robot to arrive at the picking waypoint.

  2. Step 2: Use the Set DO Step to control the robot to pick the carton using the suction cups.

See the following for details.

Step

Vision Move

Description

Move according to the vision recognition result.

Operation

Find the “Vision Move” Step in the Step Library, and drag it to the graphical programming workspace.

Parameter Settings

Select Single_Case_Cartons from the Vision Service Name drop-down list.

Image

viz project visual recongnize

Step

Set DO

Description

Control the suction cups to pick the carton.

Operation

Find the “Set DO” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Trigger Suction Cup”.

Parameter Settings

Set the Digital Out Value and DO Port parameters to 1. These parameter values are reference only. Please determine them according to actual on-site requirements.

Image

viz project set do open

To ensure that the robot can pick the carton securely, add the Wait Step.

Step

Wait

Description

To avoid the failures to pick cartons.

Operation

Find the “Wait” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Wait for firm gripping”.

Parameter Settings

Set the Wait Time parameter to 1000ms.

Image

viz project wait

Move the Robot to the Departure Waypoint of Picking

After the robot picks the carton, you need to use the Relative Move Step to move the robot to the departure waypoint to avoid the collision between the carton and the scene objects.

Step

Relative Move

Description

Move according to the vision recognition result.

Operation

Find the “Relative Move” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Departure waypoint”.

Parameter Settings

Set Relative Move Dependency to Next waypoint; set Waypoint type to Tool, and set the Z coordinate to a value larger than the height of the cartons. For example, if the carton height is 500 mm, set the Z coordinate to -600 mm.

Image

viz project approach point 1

viz project approach point 2

Move the Robot to a Transition Waypoint

To avoid collision, you can add transition waypoints using the Fixed-Point Move Step after the departure waypoint to optimize the picking and placing path.

Step

Fixed-Point Move

Description

Optimize the robot picking and placing path

Operation

Find the “Fixed-Point Move” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Transition waypoint”.

Parameter Settings

Set Waypoint type to JPs and set the JPs values.

Image

viz project transition point 1

viz project transition point 2

Move the Robot to the Approach Waypoint of Placing

Before the robot places the carton, you need to use the Relative Move Step to move the robot to the approach waypoint for placing to avoid collision between the carton and the scene object.

Step

Relative Move

Description

Move according to the vision recognition result.

Operation

Find the “Relative Move” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Approach waypoint 2”.

Parameter Settings

Set Relative Move Dependency to Next waypoint; set Waypoint type to Tool, and set the Z coordinate to a proper value, such as -200 mm.

Image

viz project approach point2 1

viz project approach point2 2

Place the Carton

After the robot arrives at the approach waypoint for placing, you can control the robot to place cartons. The picking process can be divided into two steps.

  1. Step 1: Use the Fixed-Point Move Step to control the robot to arrive at the placing waypoint.

  2. Step 2: Use the Set DO Step to control the robot to release the suction cups to place the carton.

See the following for details.

Step

Fixed-Point Move

Description

Control the robot to arrive at the placing waypoint.

Operation

Find the “Fixed-Point Move” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Placing waypoint”.

Parameter Settings

Set a proper TCP as the placing waypoint.

Image

viz project place point

Step

Set DO

Description

Release the suction cups to place the carton.

Operation

Find the “Set DO” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Release suction cup”.

Parameter Settings

Set the Digital Out Value parameter to 0 and the DO Port parameter to 1. These parameter values are reference only. Please determine them according to actual on-site requirements.

Image

viz project set do close

Since it takes time for the suction cup to release, you need to add the Wait Step to avoid the failure of placing the carton by the robot.

Step

Wait

Description

Avoid the failure of placing the carton by the robot.

Operation

Find the “Wait” Step in the Step Library, drag it to the graphical programming workspace, and rename it as “Wait for release”.

Parameter Settings

Set the Wait Time parameter to 1000ms.

Image

viz project wait

Connect Steps

After the preceding Steps are added, connect them one by one. To control the robot to pick and place cartons repeatedly, you need to connect the exit port of “Placing Wait” to the entry port of “Initial Pose”.

Simulate and Run the Project

  1. After all the Steps are connected properly, click the Simulate button on the toolbar to simulate the Mech-Viz project.

    viz project viz simulation
  2. If the project runs as expected in simulation, click the Run button on the Mech-Viz toolbar to run the project with the real robot.

    viz project viz run rela robot

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

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.