MCPcopy Create free account
hub / github.com/LeCAR-Lab/model-based-diffusion / __init__

Method __init__

mbd/envs/hopper.py:12–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

10
11class Hopper(PipelineEnv):
12 def __init__(self):
13 path = epath.resource_path("brax") / "envs/assets/hopper.xml"
14 sys = mjcf.load(path)
15
16 self._reset_noise_scale = 5e-3
17
18 super().__init__(sys=sys, backend="positional", n_frames=20)
19
20 def reset(self, rng: jax.Array) -> State:
21 """Resets the environment to an initial state."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected