Skip to content

superjeary/selective_grasping

Repository files navigation


Contents

  1. Authors
  2. Required packages - Kinetic Version
  3. Easy install
  4. Run GGCNN in Gazebo and RVIZ

1.0 - Authors

Back to the top

*LaR - Laboratório de Robótica, Departamento de Engenharia Elétrica e de Computação, Universidade Federal da Bahia, Salvador, Brasil

**PPGM - Programa de Pós-Graduação em Mecatrônica, Universidade Federal da Bahia, Salvador, Brasil.


2.0 - Required packages - Kinetic Version

Back to the top

This code was developed with Python 2.7 on Ubuntu 16.04 with ROS Kinetic.

It is recommended to follow the EASY INSTALL step below

NOTE: This package should be placed into your src folder. Please open an issue if you find any problem related to this package.

In order to run the experiment you will need a trained .params (Contact the authors to download the .params) Create a folder called params inside the selective_grasping folder and put the .params there. Remember to rename the .params files and related variables in detect.py


3.0 - Easy install

Back to the top

In order to install all the required packages easily, create a new catkin workspace

mkdir -p ~/catkin_ws_new/src

Clone this repository into the src folder

cd ~/catkin_ws_new/src
git clone https://github.com/caiobarrosv/selective_grasping

Run the install.sh file

cd ~/catkin_ws_new/src/selective_grasping/install
./install.sh

4.0 - Run the experiments in Gazebo

Back to the top

THE GAZEBO SIMULATION IS NOT WORKING PROPERLY. THE GRASPS ARE UNSTABLE AND NEED TO BE FIXED. THE SIMULATION IS USED ONLY TO RUN EXPERIMENTS PRIOR TO THE REAL WORLD APPLICATION TO AVOID ACCIDENTS

Please follow each following steps:

4.1 - Launch Gazebo:

roslaunch selective_grasping gazebo_ur5.launch

4.2 - Run the UR5 control node

Press enter after the following message appears and jump to the step 4.3: "==== Press enter to move the robot to the 'depth cam shot' position!"

rosrun selective_grasping ur5_open_loop.py --gazebo

4.3 - Run the SSD node

rosrun selective_grasping detect.py --gazebo

4.4 - Run the GG-CNN node

Press enter after the following message appears and jump to the step 4.5: "Press enter to start the GGCNN"

rosrun selective_grasping run_ggcnn.py --gazebo

4.5 - Spawn the objects in the workspace

rosrun selective_grasping spawn_objects.py

4.6 - UR5 control node

After running the GG-CNN node you are able to move the robot and perform the grasp using the terminal provided by step 4.2

4.7 - Change the Gazebo properties (OPTIONAL)

It will speed up your Gazebo simulation a little bit :)

rosrun selective_grasping change_gazebo_properties.py

4.8 - Visualize the images published by the GG-CNN

You might want to see the grasp or any other image. In order to do that, you can use the rqt_image_view.

rosrun rqt_image_view

4.9 - Visualize depth cloud in RVIZ

If you want to visualize the data being published by the Intel Realsense D435 please run the following node:

rosrun selective_grasping rviz_ur5.launch