MCPcopy Create free account
hub / github.com/google-deepmind/dm_control / single_step

Method single_step

dm_control/viewer/runtime.py:169–173  ·  view source on GitHub ↗

Performs a single step of simulation.

(self)

Source from the content-addressed store, hash-verified

167 return finished
168
169 def single_step(self):
170 """Performs a single step of simulation."""
171 if self._state == State.RUNNING:
172 finished = self._step()
173 self._state = State.STOP if finished else State.RUNNING
174
175 def stop(self):
176 """Stops the runtime."""

Callers 4

_advance_simulationMethod · 0.80
test_when_runningMethod · 0.80
test_ending_episodeMethod · 0.80

Calls 1

_stepMethod · 0.95

Tested by 3

test_when_runningMethod · 0.64
test_ending_episodeMethod · 0.64