Skip to content

Commit c4faa5b

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Use nstep argument for physics.step in Cheetah initialization.
This was suggested by Trinkle23897 on bd6d893. PiperOrigin-RevId: 448234630 Change-Id: Id6dacbbb2a9e7779b7a5e616d6365b390c0099ab
1 parent 4613291 commit c4faa5b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

dm_control/suite/cheetah.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ def initialize_episode(self, physics):
6969
physics.data.qpos[is_limited] = self.random.uniform(lower, upper)
7070

7171
# Stabilize the model before the actual simulation.
72-
for _ in range(200):
73-
physics.step()
72+
physics.step(nstep=200)
7473

7574
physics.data.time = 0
7675
self._timeout_progress = 0

0 commit comments

Comments
 (0)