Skip to content

This repo contains tools to save images of simulated objects in Gazebo for affordance segmentation

Notifications You must be signed in to change notification settings

ivalab/simData_imgSaver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simData_imgSaver

ros package for saving simulation images in Gazebo with Kinect

Get the package

cd ~/catkin_ws/src/
git clone https://github.gatech.edu/fchu9/simData_imgSaver.git
cd ..
catkin_make

Clone the simData

cd ~/catkin_ws/src/
git clone https://github.gatech.edu/fchu9/simData_v2.git 

rename the /3Dwarehouse/tools to /warehouse/models

Preprocess data

in utils/move_model_files.m modify the dataRoot

dataRoot = '/home/YOUR/PATH/TO/catkin_ws/src/simData_v2/warehouse/models';

run move_model_files.m in MATLAB

Copy models

copy all models to /home/YOURNAME/.gazebo/models/

NOTE:
you can add export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:/home/YOUR/PATH/TO/catkin_ws/src/simData_v2/warehouse/ in ~/.bashrc then you can might skip this step but change line 34:

fprintf(fsdf, ['            <uri>file://models/' FolderName '/mesh/' filename '.dae</uri>\n']);

Open Gazebo

gazebo_ros gazebo

Run imgSaver

in visuomotor_grasp_3D_Box.py modify MODEL_DIR to /home/YOUR/PATH/TO/catkin_ws/src/simData_v2/warehouse/models

python visuomotor_grasp_3D_Box.py

the files will be saved to /dataset

About

This repo contains tools to save images of simulated objects in Gazebo for affordance segmentation

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published