Manual

Table Of Contents
Arduino Kit Demo Description 10 DobotPixy Demo
Issue V2.1 (2019-12-05) Demo Description Copyright © Yuejiang Technology Co., Ltd
36
Pick and place cubes. If there are multiple cubes in the same color, these cubes will
be piled when placing them.
Program 10.3 Pick and place cubes
SmartKit_VISRun(); //Vision recognition: Obtain the numbers, colors and coordinates of the cubes.
color = GREEN;
Dobot_SetPTPJumpParams(10); //Set the lifting height
while (SmartKit_VISGrabBlock(color, 1, 0) == TRUE) // Pick the cube
{
Dobot_SetPTPJumpParams(30); //Set the lifting height
SmartKit_VISPlaceBlock(color); // Place the cube
};
SmartKit_VISSetBlockPlaceNum(color, 0); // Clear the placing number
……
……