Farama-Foundation / Gymnasium-Robotics

A collection of robotics simulation environments for reinforcement learning
https://robotics.farama.org/
MIT License
485 stars 79 forks source link

[Question] Is there a way to set the environment to a specific state in franka kitchen tasks? #182

Closed ygtkorkmaz closed 9 months ago

ygtkorkmaz commented 9 months ago

I am trying to replay the expert demonstrations in the franka kitchen environment but I couldn't find any way of setting the environment to a specific state in the code. Any help would be appreciated!

Kallinteris-Andreas commented 9 months ago

Set the values in

env.unwrapped.data.qpos
env.unwrapped.data.qvel

more info how mujuco state works can be found here: https://mujoco.readthedocs.io/en/latest/computation/index.html#the-state

ygtkorkmaz commented 9 months ago

Got it, thanks a lot. Also, I realized envs in gymnasium-robotics don't have a get_dataset() function. I believe I should get the dataset using Minari?

Kallinteris-Andreas commented 9 months ago

yes, this project only have robotic environments, for offline RL you need to use minari

ygtkorkmaz commented 9 months ago

Great, thank you so much!