Use of adaptive grippers

1. setGripperState(byte mode, int sp);

2. setGripperValue(int data, int sp);

3. setGripperIni();

4. getGripperValue();

5. isGripperMoving();

6.void setGripperMode(bool mode);

7. bool getGripperMode();

Adaptive robot control

This example will initialize the MyCobotBasic instance, turn on the robot power, and initialize the adaptive gripper. During the initialization process, the gripper will open and close once. After that, the gripper is controlled to reach two specified positions, then open and close once, and the program ends.