Skip to content

Commit

Permalink
Fix gym env following action changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
stepjam committed Apr 2, 2020
1 parent 0897b7b commit 8ff9507
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rlbench/gym/rlbench_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(self, task_class, observation_mode='state',
_, obs = self.task.reset()

self.action_space = spaces.Box(
low=-1.0, high=1.0, shape=(action_mode.action_size,))
low=-1.0, high=1.0, shape=(self.env.action_size,))

if observation_mode == 'state':
self.observation_space = spaces.Box(
Expand Down

0 comments on commit 8ff9507

Please sign in to comment.