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

Method __init__

unihsi/env/tasks/vec_task.py:94–99  ·  view source on GitHub ↗
(self, task, rl_device, clip_observations=5.0, clip_actions=1.0)

Source from the content-addressed store, hash-verified

92# C++ GPU Class
93class VecTaskGPU(VecTask):
94 def __init__(self, task, rl_device, clip_observations=5.0, clip_actions=1.0):
95 super().__init__(task, rl_device, clip_observations=clip_observations, clip_actions=clip_actions)
96
97 self.obs_tensor = gymtorch.wrap_tensor(self.task.obs_tensor, counts=(self.task.num_envs, self.task.num_obs))
98 self.rewards_tensor = gymtorch.wrap_tensor(self.task.rewards_tensor, counts=(self.task.num_envs,))
99 self.resets_tensor = gymtorch.wrap_tensor(self.task.resets_tensor, counts=(self.task.num_envs,))
100
101 def step(self, actions):
102 self.task.render(False)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected