mm_viz_pick_and_place

You are currently viewing the documentation for version 1.8.1. 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.

This program triggers Mech-Viz to start and guides the robot to complete a simple pick-and-place task. It is applicable to scenarios where one vision result guides the picking for one or multiple times.

Load the Program

Open TMflow and click Project to open the window.

mm viz pick and place1

Configurations

Point Configuration

You can set the points in Point Manager:

vizPose is the point calculated according to Mech-Viz’s planned path.

Dropoff is the point taught by the user, where the robot places the object.

Parameter Configuration

MM init component

The network setting in the program is defined by MM init. You can configure the IP address, i.e., the IP address of the IPC, in this component.

Please refer to Configure the IP Address of the IPC to modify the IP address of MM init.

Run Viz component

You will need to manually configure the parameter that triggers Mech-Viz to start. Please click the tm interface program icon4 icon in the upper left corner of the Run Viz component to configure.

For detailed instructions on parameter configuration, please refer to Start Mech-Viz Project (Run Viz).

Program Description

Movement Program

Place (place_sequence)

The release_object node cannot be executed directly. You should modify the parameters of it to control the gripper to open.

place sequence

Main Program

First, the MM init component is added after the Start node to establish communication. You can modify the IP address in the MM init component. Please make sure that the robot and IPC are in the same subnet.

mm viz pick and place2

Then, the Run Viz component is added to start Mech-Viz. You can configure parameters to trigger Mech-Viz to start, switch the branch, and set the Current Index.

Next, the Receive Viz component is added to obtain the planned path from Mech-Viz. The results returned from Mech-Viz will be stored in the global variable g_mm_socket_recv_array as strings.

mm viz pick and place3

The results received from Mech-Viz will be used to assign values to vizPose. The program will determine whether the result received is a “Vision Move” Step. If it is a “Vision Move” Step, the robot will move to the waypoint in the line motion mode; if it is not, the robot will move to the waypoint in the Point to Point motion type, and then starts to pick the object.

Similarly, the grasp_object node cannot be executed directly. You should modify the parameters of it to control the gripper to close.

Then the program determines whether all waypoints provided by Mech-Viz have been reached. If the robot has moved to all waypoints, it will be guided by place_sequence and start to place the object. In this example, you will need to set the Dropoff point in place_sequence and Mech-Viz does not need to export points for placing.

mm viz pick and place4

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.