6. Self Practice
Task
Detect and pick up a mahjong block, then place it into the small board for mahjong blocks. A Landmark will be placed on the board. The positions of both the mahjong block and the board are not fixed. After the flow ends, the project must exit the execution screen by itself. Every task after this should also exit automatically.
Verification
- The mahjong block position is not fixed. Check whether the arm can accurately pick it up. It is recommended not to rotate the block more than 180°.
- The board position is not fixed. Check whether the arm can accurately place the mahjong block into a slot. It is recommended not to rotate the board more than 180°.
- After the flow ends, check whether it automatically exits the project execution screen.
Answer
Point(Robot Base): set aPointat the initial position. It should be high enough to avoid collisions when moving to the vision task position.Vision(Positioning, Robot Base): move above the mahjong block area, set anObject Positioningvision task, and recognize the TM logo on the mahjong block. This automatically creates Vision Base.Point(Vision Base): move the arm down above the mahjong block to a position where it can grip the block. Do not move the mahjong block. You can use
and the controller +and-for fine adjustment.Set: set end moduleDO_0toH, then pressOutput Testto grip the mahjong block.Wait for: wait500 msto ensure the block is gripped.Move: setZto-100 mmso the arm will not collide. This step can also be replaced with another vertical-upPoint.Point(Robot Base): move to a higher position to prepare for the board vision task.Vision(Positioning, Robot Base): move above the small board, set aTM Landmarkvision task, and recognize the Landmark on the board. This automatically creates Vision Base.Point(Vision Base): move the arm onto the board and align the gripped mahjong block with one board slot. Do not move the mahjong block. You can use
and the controller +and-for fine adjustment.Set: set end moduleDO_0toL, then pressOutput Testto release the mahjong block.Wait for: wait500 msto ensure the block is released.Move: setZto-100 mmso the arm will not collide. This step can also be replaced with another vertical-upPoint.Point(Robot Base): set aPointat the ending position.Stop
Small Tip
For every Vision Miss, you can connect it to a Goto node and loop it back to that Vision.