Awesome
Tactile optical simulation
Requirements
- Python>=3.8
Setup
The project uses Mitsuba3 renderer(v3.3.0) for generating all the images.
- 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 |
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
- The model files for GelSight are in Mitsuba xml format. The Mitsuba3 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
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}
}