mm_viz_pick_and_place

You are currently viewing the documentation for the latest version (2.1.1). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

The program triggers the Mech-Viz project to run to obtain the planned path for picking and placing the object.

Load the Program

In TMflow, select File > Open and open the program below.

viz pick and place 1

Configurations

Point Configurations

The program involves a total of 2 points, as detailed below.

viz pick and place 2
  • vizPose: The point assigned based on the planned path returned by Mech-Viz. You do not need to teach the point in advance.

  • Dropoff: The point where the robot places the object. You need to teach the point in advance.

Attribute Configurations

MM init Component

All network devices in the program are generated by using MM init. This component allows you to modify the IP address and port number of the IPC.

Run Viz Component

You needs to manually specify the parameter values of the Run Viz component. For detailed instructions, see Modify Component Parameters.

Program Description

Place (place_sequence)

The release_object node cannot be executed directly. You can modify the parameter values here to control the tool to release.

viz pick and place 3

Main Program (mm_v201_viz_pick_and_place)

  1. First, set up the communication between the robot and the vision system by using mm_v201_init1. You can modify the IP address and port number of the IPC in mm_v201_init1.

    viz pick and place 4
  2. Run the Mech-Viz project and set the exit port of the Branch by Msg Step and the Current Index value by using mm_v201_runvis1.

  3. Obtain the motion path obtained by the Mech-Viz project by using mm_v201_recvviz1. The planned path received from Mech-Viz is stored in the global variable g_mm_socket_recv_array as strings.

    viz pick and place 5
  4. Assign the pose of the waypoint that is stored in g_mm_socket_recv_array to vizPose and determine whether the waypoint is a Vision Move waypoint (the waypoint that corresponds to the Vision Move Step and is used as the picking waypoint). If the waypoint is not a Vision Move waypoint, the robot move to the waypoint in the form of joint motion. If the waypoint is not a Vision Move waypoint, the robot move to the waypoint in a straight line and then pick the target object. The grasp_object node cannot be executed directly. You can modify the parameter values here to control the tool to grasp.

  5. Check whether all waypoints have been reached. If they have, proceed to the sub-process of placing the target object.

    viz pick and place 6

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.