(self)
| 10 | |
| 11 | class 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected