Skip to content
This repository has been archived by the owner on May 9, 2020. It is now read-only.

Commit

Permalink
update jigsaw
Browse files Browse the repository at this point in the history
  • Loading branch information
lxb1989 committed Mar 29, 2020
1 parent 9e299b6 commit 8a5de8b
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 68 deletions.
74 changes: 74 additions & 0 deletions documents/Jigsaw_task/Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Configuration
The robot work cell is showed in figure.1

<p align="center"><img src="./fig-overview.png" width="40%"/></p>
<p align="center">Figure 1. The robot work cell</p>

- Arm: A suction cup mounted on the tool flange, and the end of suction cup is 0.15 meters above the table, 0.3 meters away from the center of the workspace, and the pose is vertical downward.
- The camera is mounted on the base and is 1m above the table. The accurate position is got by calibration.
- The rectangle workspace is front of the robot, the width is 300mm, the lenth is 400mm.
- the jigsaw pieces are placed in the workspace.

In this example, the robot is Franka Emika Panda, the camera is realsense D435i and the end-effector is a suction cup.
The configration of three tasks followed are similar, and the different is where and how to place the jigsaw pieces.

# Procedure
With the same jigsaw puzzle, we proposed a standard workflow for manipulation task implementation.

The functional metrics are general, and the full task metrics are designed according to actual tasks.
<p align="center"><img src="./fig-workflow.png" width="40%"/></p>
<p align="center">Figure 2. The workflow</p>

We designed 3 tasks: pick and place task, 4-piece tiling task, 5-piece assembly task, and the details showed below:
<p align="center"><img src="./fig-task&jigsaw.png" width="40%"/></p>
<p align="center">Figure 3. The tasks sets</p>

Tasks are also implemented in different platforms.
<p align="center"><img src="./fig-TaskWorkflow.png" width="40%"/></p>
<p align="center">Figure 4. The hardware sets</p>

# Result
In each experiment, we record the results of the functions and task. Each task we repeat 10 times, and the metrics of each function and full task are showed below.

<p align="center"><img src="./fig-Panda.png" width="40%"/></p>
<p align="center">Table 1. an example of results</p>

- **IoU**: Intersection over Union, an overlap ratio between the predicted bounding box and ground truth bounding box. To calculate this metric, we print jigsaw shape templates of each piece and place the jigsaw piece on the corresponding jigsaw shape template. We get the ground truth using templates,and calculate the IoU.

  _Recall_: TP/(TP+FN) = True position /(All real positive)
  _Precision_: TP/(TP+FP) = True position /(All predicted positive)
  where TP is Ture positive, TN is True negative, FP is False positive,FN is False negative


- **AP**: True position /(All predicted positive). For this task, we predict all the object in the **ws space**, and judge which is right. For example, we predict 4 objects, and 3 is correct, so precision equals 3/4.

- **success rate**: this metric evaluates the physical performance of the picking, equals success picking/total picking.

- **time**: the time consumption of each period and the full task. This metric represent the cost of the task.
- **area rate**: standard area/real area

<p align="center"><img src="./area rate.png" width="50%"/></p>
<p align="center">Figure 5. area rate</p>

<!-- You can not see the following comment. -->
<!--
For each task, we repeat 10 times and record the results. And finilally calculate the result.
trial|IoU|seg time|precisiom|recog time|success rate|pick plan time|area rate|time(s)
:-----:|---|--------|--|----------|------------|--------------|------------|-------
1|0.8|12.3|4/5|4.0|2/3|8.0|0.9|40.3
2|---|--------|--|----------|------------|--------------|------------|-------
...|---|--------|--|----------|------------|--------------|------------|-------
12|---|--------|--|----------|------------|--------------|------------|-------
reault|IoU = sum(IoU<sub>i</sub>)/10|sum(time<sub>i</sub>)/10|sum(AP<sub>i</sub>)/10|sum(time<sub>i</sub>)/10|sum(success rate<sub>i</sub>)/10|sum(time<sub>i</sub>)/10|sum(area rate<sub>i</sub>)/10|sum(time<sub>i</sub>)/10
-->

# Demo Videos
The video is here [video](https://github.com/bionicdl-sustech/DeepClawBenchmark/tree/master/documents/Jigsaw_task/Video_Jigsaw.mp4)





# Contact
If you have any questions or find any bugs, please let me know: [email protected]
Binary file added documents/Jigsaw_task/Video_Jigsaw.mp4
Binary file not shown.
Binary file added documents/Jigsaw_task/fig-Panda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/Jigsaw_task/fig-TaskWorkflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/Jigsaw_task/fig-overview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/Jigsaw_task/fig-task&jigsaw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added documents/Jigsaw_task/fig-workflow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
68 changes: 0 additions & 68 deletions documents/Jigsaw_task/task_description.md

This file was deleted.

0 comments on commit 8a5de8b

Please sign in to comment.