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

Class TrackedTask

dm_control/composer/hooks_test_utils.py:252–263  ·  view source on GitHub ↗

A `composer.Task` that tracks call order of callbacks.

Source from the content-addressed store, hash-verified

250
251
252class TrackedTask(HooksTracker, composer.NullTask):
253 """A `composer.Task` that tracks call order of callbacks."""
254
255 def __init__(self, physics_timestep, control_timestep, *args, **kwargs):
256 super().__init__(
257 physics_timestep=physics_timestep,
258 control_timestep=control_timestep,
259 *args,
260 **kwargs)
261 self.set_timesteps(
262 physics_timestep=physics_timestep, control_timestep=control_timestep)
263 add_bodies_and_actuators(self.root_entity.mjcf_model, num_actuators=4)
264
265
266class HooksTestMixin:

Callers 1

setUpMethod · 0.85

Calls

no outgoing calls

Tested by 1

setUpMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…