MCPcopy Create free account
hub / github.com/InternRobotics/UniHSI / get_state

Method get_state

unihsi/env/tasks/vec_task.py:123–124  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

121class VecTaskPython(VecTask):
122
123 def get_state(self):
124 return torch.clamp(self.task.states_buf, -self.clip_obs, self.clip_obs).to(self.rl_device)
125
126 def step(self, actions):
127 actions_tensor = torch.clamp(actions, -self.clip_actions, self.clip_actions)

Callers 3

__init__Method · 0.80
stepMethod · 0.80
resetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected