Skip to content

Commit

Permalink
[gym] Use tuple instead of list to store constant sequences to preser…
Browse files Browse the repository at this point in the history
…ve value and type check. (#268)

Co-authored-by: Alexis Duburcq <alexis.duburcq@wandercraft.eu>
  • Loading branch information
duburcqa and Alexis Duburcq authored Jan 14, 2021
1 parent 0e33023 commit 1790ec2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
from .env_generic import BaseJiminyEnv


GROUND_STIFFNESS_LOG_RANGE = [5.5, 7.0]
GROUND_DAMPING_RATIO_RANGE = [0.2, 1.0]
GROUND_FRICTION_RANGE = [0.8, 8.0]
GROUND_STIFFNESS_LOG_RANGE = (5.5, 7.0)
GROUND_DAMPING_RATIO_RANGE = (0.2, 1.0)
GROUND_FRICTION_RANGE = (0.8, 8.0)

F_XY_IMPULSE_SCALE = 1000.0
F_XY_PROFILE_SCALE = 50.0
Expand Down
2 changes: 1 addition & 1 deletion python/gym_jiminy/envs/gym_jiminy/envs/acrobot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# Relative height of tip to consider an episode successful for normal env
HEIGHT_REL_DEFAULT_THRESHOLD = 0.5
# Range of rel. height of tip to consider an episode successful for goal env
HEIGHT_REL_GOAL_THRESHOLD_RANGE = [-0.2, 0.98]
HEIGHT_REL_GOAL_THRESHOLD_RANGE = (-0.2, 0.98)
# Standard deviation of the noise added to the action
ACTION_NOISE = 0.0

Expand Down

0 comments on commit 1790ec2

Please sign in to comment.