02076981cd07b2aeee44e57bb6d19b0195426a9a,examples/step_dm_control_env.py,,,#,9
Before Change
while True:
env.step(env.action_space.sample())
env.render()
except KeyboardInterrupt:
print("Exiting...")
env.close()
After Change
from garage.envs.dm_control import DmControlEnv
parser = argparse.ArgumentParser()
parser.add_argument("--n_steps",
type=int,
default=1000,
help="Number of steps to run")
args = parser.parse_args()
// Construct the environment
env = DmControlEnv.from_suite("walker", "run")
// Reset the environment and launch the viewer
env.reset()
env.render()
// Step randomly until interrupted
steps = 0
while True:
if steps == args.n_steps:
break
env.step(env.action_space.sample())
env.render()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: rlworkgroup/garage
Commit Name: 02076981cd07b2aeee44e57bb6d19b0195426a9a
Time: 2019-11-27
Author: gitanshusardana@gmail.com
File Name: examples/step_dm_control_env.py
Class Name:
Method Name:
Project Name: Rostlab/nalaf
Commit Name: 6878a5d3dc03a464f99f90cbbd6edcd25eccde75
Time: 2015-06-16
Author: aleksandar.bojchevski@gmail.com
File Name: demo.py
Class Name:
Method Name:
Project Name: rlworkgroup/garage
Commit Name: 02076981cd07b2aeee44e57bb6d19b0195426a9a
Time: 2019-11-27
Author: gitanshusardana@gmail.com
File Name: examples/step_dm_control_env.py
Class Name:
Method Name:
Project Name: rlworkgroup/garage
Commit Name: 02076981cd07b2aeee44e57bb6d19b0195426a9a
Time: 2019-11-27
Author: gitanshusardana@gmail.com
File Name: examples/step_env.py
Class Name:
Method Name: