Giter Site home page Giter Site logo

pdproc's Introduction

This repo contains code to process and render images of the MIT Pushing dataset.

Preprocessing

First, create a folder structure like [pushdata folder]/[surface name]/ by downloading the zip-files for each surface to [pushdata folder]/ and unzipping them there. This should result in a folder structure like this: [pushdata folder]/[surface name]/[object name]/[object_name]_h5.zip

Below we will use ~/pd as the pushdata root folder. For example, the data of rect1 on ABS surface will be at ~/pd/abs/rect1/rect1_h5.zip.

First preprocess the data using

scripts/preprocess.py --source-dir ~/pd

This will

  • remove redundant data entries
  • treat some (not all) of the jumps in object orientation
  • transform the orientation to [-pi, pi]
  • synchronize the data by resampling to a given frequency
  • set the initial object position and orientation to zero
  • add information about the push (angle, velocity...) to the h5 data files

This will save all the preprocessed h5 files for object [object_name] on surface [surface_name] to ~/pd/[surface name]/[object name]. If you want to write output to another directory than the source directory (~/pd), you can specify this with the --out-dir argument.

RGB-D rendering

The preprocessing has to be done before.

To render RGB-D pictures from the preprocessed images, refer to scripts/render_scene.py.

Assuming we are at the top folder of pdproc, a rendering demo can be run by

scripts/render_scene.py --source-folder ~/pd --out-dir .

This will generate a series of images in jpeg in the current folder.

Contact annotation

To annotate the preprocessed h5 files with contact points and surface normals, please refer to scripts/render_scene.py.

pdproc's People

Contributors

akloss avatar peterkty avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.