Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/introduction/basic_usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ import metaworld

seed = 42

envs = gym.make('Meta-World/MT10', vector_strategy='sync', seed=seed) # this returns a Synchronous Vector Environment with 10 environments
envs = gym.make_vec('Meta-World/MT10', vector_strategy='sync', seed=seed) # this returns a Synchronous Vector Environment with 10 environments

obs, info = envs.reset() # reset all 10 environments

a = env.action_space.sample() # sample an action for each environment
a = envs.action_space.sample() # sample an action for each environment

obs, reward, truncate, terminate, info = envs.step(a) # step all 10 environments
```
Expand All @@ -66,7 +66,7 @@ envs = gym.make_vec('Meta-World/MT50', vector_strategy='sync', seed=seed) # this

obs, info = envs.reset() # reset all 50 environments

a = env.action_space.sample() # sample an action for each environment
a = envs.action_space.sample() # sample an action for each environment

obs, reward, truncate, terminate, info = envs.step(a) # step all 50 environments
```
Expand Down
Loading