GithubHelp home page GithubHelp logo

tactile_optical_simulation's Introduction

Tactile optical simulation

Requirements

  • Python>=3.7

Setup

The project uses Mitsuba2 renderer(v2.1.0) for generating all the images. For quick start, python package for renderer is available here. You can also use docker images which are available here

  • For installing python dependencies
pip3 install -r requirements.txt

Quick Start

  • python3 generate_image.py
  • To choose the configuration file see files inside file_list_cfgs
  • To choose the render configurations see files inside render_cfgs

Expected Results

Real Sensor Image Rendered Image
Real Sensor Image Rendered Image

Usage

User can render a new object by providing its mesh in Wavefront .obj format and passing its name as a param to render function. new_mesh_render.py provides an example. Please refer to the script for more details.

  • Execute python new_mesh_render.py to render a sensor view without any object pressed against it.

Output Visualization

  • tev is a EXR viewer and comparison tool. You can download the latest executables from here
  • qt4Image is another viewer for exr images across different platform. It can also generate low-dynamic range images with gamma encoding. You can download the utility for linux from this link.

Advanced

  • Building from source gives ability to run faster simulation by using GPU and setup optimization for different simulation models. The instructions to build from source are mentioned in official documentation
  • The model files for GelSight are in Mitsuba xml format. The Mitsuba2 documentation has details on the parameters and how to set them.
  • The important file which are used in rendering for flatgel is or models/flatgel_with_mesh.xml

Not supported

  • Bidirectional Path tracing
  • Heightfields

Known issues

  • Currently mitsuba2 outputs artifacts in rendered image on macOS
Linux Mac
Linux MacOS

Citation

@article{agarwal2020simulation,
  title={Simulation of Vision-based Tactile Sensors using Physics based Rendering},
  author={Agarwal, Arpit and Man, Tim and Yuan, Wenzhen},
  journal={arXiv preprint arXiv:2012.13184},
  year={2020}
}

tactile_optical_simulation's People

Contributors

arpit15 avatar

Watchers

 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.