MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / reset

Method reset

scripts/advanced/train_ppo.py:48–54  ·  view source on GitHub ↗
(self, seed=None)

Source from the content-addressed store, hash-verified

46 self.current_step = 0
47
48 def reset(self, seed=None):
49 log.info("Resetting environments")
50 """Reset all environments"""
51 self.current_step = 0
52 init_states = self._get_default_states()
53 self.env.reset(states=init_states)
54 return self._get_obs(), None
55
56 def step(self, actions):
57 """Step through all environments"""

Callers 15

run_taskFunction · 0.45
run_oneFunction · 0.45
rolloutFunction · 0.45
runFunction · 0.45
_rollout_framesFunction · 0.45
mainFunction · 0.45
runFunction · 0.45
_native_envFunction · 0.45
build_mjlabFunction · 0.45
build_roboverseFunction · 0.45
run_oneFunction · 0.45
build_mjlabFunction · 0.45

Calls 2

_get_default_statesMethod · 0.95
_get_obsMethod · 0.95

Tested by 3

smoke_mujocoFunction · 0.36
smoke_newtonFunction · 0.36
mainFunction · 0.36