Giter Site home page Giter Site logo

trifinger_data's Introduction

TriFinger RL Datasets

This repository provides offline reinforcement learning datasets collected on the real TriFinger platform and in a simulated version of the environment. The paper "Benchmarking Offline Reinforcement Learning on Real-Robot Hardware" provides more details on the datasets and benchmarks offline RL algorithms on them. All datasets are available with camera images as well.

More detailed information about the simulated environment, the datasets and on how to run experiments on a cluster of real TriFinger robots can be found in the documentation.

Some of the datasets were used during the Real Robot Challenge 2022.

Installation

cd trifinger_rl_datasets
pip install --upgrade pip  # make sure the most recent version of pip is installed
pip install .
cd ..

Preprocess

python preprocess.py --input_dataset trifinger-cube-lift-real-expert-v0 --output_dataset trifinger-cube-lift-real-expert-v0-masa

Usege in Python

old_env = gym.make(
           args.input_dataset,
           flatten_obs=True)
old_dataset = old_env.get_dataset(rng=(0,2))
print('Observation Shape', old_dataset['observations'][0].shape)

new_env = gym.make(
           args.input_dataset,
           flatten_obs=True,
           data_dir=f'output_datasets/{args.output_dataset}')

new_dataset = new_env.get_dataset(rng=(0,2), clip=False)
print('Observation Shape', new_dataset['observations'][0].shape)

trifinger_data's People

Contributors

mikezhang95 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.