luyh20 / FGC-GraspNet

ICRA 2022 "Hybrid Physical Metric For 6-DoF Grasp Pose Detection"
MIT License
51 stars 6 forks source link

FGC-GraspNet

Official Implementation for paper "Hybrid Physical Metric For 6-DoF Grasp Pose Detection" ICRA 2022.

arxiv

teaser

Data Preparation

Download the GraspNet-1Billion dataset from graspnet. In this paper, we use a new evaluation metric to generate grasp confidence scores for grasp poses. You can get the new score labels under hybrid physical metric from here. The data directories should like this:

FGC_GraspNet/
├── grasp_data/
|       ├── scenes
|       ├── models
|       ├── dex_models
│       ├── FGC_label
│       ├── grasp_label
│       └── collision_label

Requirements

Installation

Get the code.

git clone https://github.com/luyh20/FGC-GraspNet.git

Install packages via Pip.

pip install -r requirements.txt

Compile and install pointnet2 operators (code adapted from votenet).

cd pointnet2
python setup.py install

Compile and install knn operator (code adapted from pytorch_knn_cuda).

cd knn
python setup.py install

Install graspnetAPI.

git clone https://github.com/graspnet/graspnetAPI.git
cd graspnetAPI
pip install .

Training and Testing

Training:

sh train.sh

Testing:

sh test.sh

Model

Realsense model's link,https://drive.google.com/file/d/1Y-CWHr_eZDoZm3XJocrUJq1SA5tfrONX/view?usp=sharing

Demo

The demo uses the RGBD data collected in real time from the Realsense D435i camera as input, and predicts the grasp poses results by the FGC_GraspNet. If you want to use it in your own experiment, you need to check the camera model or change the camera intrinsic for your camera model.

Run Demo:

python demo.py

Video

Video for FGC-GraspNet

BibTeX

@inproceedings{lu2022hybrid,
  title={Hybrid Physical Metric For 6-DoF Grasp Pose Detection},
  author={Lu, Yuhao and Deng, Beixing and Wang, Zhenyu and Zhi, Peiyuan and Li, Yali and Wang, Shengjin},
  booktitle={2022 International Conference on Robotics and Automation (ICRA)},
  pages={8238--8244},
  year={2022},
  organization={IEEE}
}