Plugin Configuration#

Check whether the robot plugin is installed. If it is successfully installed, open SmartCam in the plugin management interface in the system test.

../_images/shot_78.png

When opening the calibration interface of the SCMVS software to test the calibration, it is necessary to change the SmartCam’s mode to configuration mode. After configuring the SCMVS software calibration plug-in, it is then necessary to change the SmartCam’s mode to run mode.

../_images/run_non.jpg

2.5DDetectionSmart#

  1. The 2.5DDetectionSmart block can be found in the command interface. It is necessary to configure the project, enter the name of the trigger project, and the communication string. The name of the project is the project name set in the SCMVS configuration. The communication string is configured by default to start. The parameter details are as follows:

  • Maximum accumulated correction displacement: During the correction process, the accumulated distance moved by the robot is summed up. If the accumulated distance moved by the robot is greater than the maximum accumulated correction displacement, the correction process will be terminated and the correction will be completed. It is recommended that the value be set to 80.

  • Maximum accumulated correction angle: During the correction process, the accumulated angle of the robot’s movement is summed up. If the accumulated angle of the robot’s movement is greater than the maximum accumulated correction angle, the correction process will be terminated and the correction will end. It is recommended to set it to 20.

  • Maximum servo correction times: During the correction process, the cumulative number of times the robot moves is accumulated. If the cumulative number of times the robot moves is greater than the maximum servo correction times, the correction process will be terminated and the correction will end. It is recommended to set it to 5.

  • Termination condition - displacement error: During the correction process, if the displacement deviation between the identified marker plate pose and the pose recorded in the reference is less than the termination condition, and the termination condition for angle error is also met, then the correction process will terminate and the correction will end. It is recommended to set it to 0.3.

  • Termination condition - angle error: During the correction process, if the angle deviation between the identified pose of the marker plate and the pose recorded by the reference is less than the termination condition, and if the termination condition for displacement error is also met, then the correction process is terminated and the correction is complete. It is recommended to set it to 0.28.

  • Correction test: The robot can be offset to verify whether the set parameters are reasonable and meet the cycle.

  • IO Variable:Recognition success, correction success. Identify, output the pose of the marker code in the robot base coordinate system at this time.

../_images/80.png ../_images/82_eng.jpg
  1. A simple flow chart of the use of the program block is shown below.

../_images/85.png
  1. Functions of Program

The configuration of the 2.5DDetectionSmart flow block, the project, the communication string, the parameter settings, and the output settings.
../_images/84.png
The If statement is used to determine whether the 2.5DDetectionSmart process block has successfully identified the pose, and then perform the grasping operation based on the identified pose. If the pose is not successfully identified, it returns to a certain point and performs another operation.
../_images/86.png
RecordPoseTrans It is a pose teach-in block, which is based on the bound datum, that is, the recognition pose output by the 2.5DDetectionSmart flow block, on which the grabbing pose (the real grasping point is taught) is taught, and multiple teach-in points can be added to the function block.
../_images/87.png
GetListElement is used to retrieve the data block, and in this case, the RecordPoseTrans teaching grasping points are retrieved in turn and copied to the moving block.
../_images/88.png ../_images/89.png
MoveL is a robot motion block that moves in turn to the teach-in grab point of the RecordPoseTrans.
../_images/90.png ../_images/91.png
When the 2.5DDetectionSmart block trigger project Test23 runs once, the example of the camera side running is as follows.
../_images/run_once.jpg