Skip to content

Instantly share code, notes, and snippets.

@PierreExeter
Created September 17, 2019 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PierreExeter/6049a49fe5f8ee3138ab91aa57211840 to your computer and use it in GitHub Desktop.
Save PierreExeter/6049a49fe5f8ee3138ab91aa57211840 to your computer and use it in GitHub Desktop.
# define the number of buckets for each state value (x, x', theta, theta')
buckets = (1, 1, 6, 12)
# define upper and lower bounds for each state value
upper_bounds = [
env.observation_space.high[0],
0.5,
env.observation_space.high[2],
math.radians(50)
]
lower_bounds = [
env.observation_space.low[0],
-0.5,
env.observation_space.low[2],
-math.radians(50)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment