Skip to content

Commit

Permalink
fix for action with noise type and value needs to be within (low,high)
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamannett authored Jul 30, 2023
1 parent da8578c commit a25aff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/tutorials/dataset_creation/point_maze_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,7 @@ def __call__(self, env, obs, info, action=None, rew=None, terminated=None, trunc
action = waypoint_controller.compute_action(obs)
# Add some noise to each step action
action += np.random.randn(*action.shape)*0.5
action = np.clip(action, env.action_space.low, env.action_space.high, dtype=np.float32)

obs, rew, terminated, truncated, info = collector_env.step(action)
if (n_step + 1) % 200000 == 0:
Expand Down

0 comments on commit a25aff9

Please sign in to comment.