Add boilerplate code

adding dora node logic

Add some documentation

refactor
This commit is contained in:
Simon Alibert
2024-05-20 19:16:37 +02:00
committed by Remi Cadene
parent 10c5151fc6
commit 8a10e8442b
8 changed files with 663 additions and 336 deletions

17
gym_dora/example.py Normal file
View File

@@ -0,0 +1,17 @@
import gymnasium as gym
import gym_dora # noqa: F401
env = gym.make("gym_dora/DoraAloha-v0", disable_env_checker=True)
obs = env.reset()
policy = ... # make_policy
done = False
while not done:
actions = policy.select_action(obs)
observation, reward, terminated, truncated, info = env.step(actions)
done = terminated | truncated | done
env.close()