Open GuoPingPan opened 1 year ago
Hi, I met the same bug. In my case, adding 1 URDF to each env is fine, after adding another URDF this error appears. Have you found any solution, thanks!!!
If you use multiple actors, when using "set_dof_state_tensor_indexed", it works well if you use only the index of the actor with dof.
For example..
env_ids_int32 = env_ids.to(dtype=torch.int32)
self.gym.set_actor_root_state_tensor_indexed(self.sim,
gymtorch.unwrap_tensor(self.root_state),
gymtorch.unwrap_tensor(env_ids_int32), len(env_ids_int32))
human_indices = self.gym_indices["human"][env_ids].to(torch.int32)
self.gym.set_dof_state_tensor_indexed(self.sim,
gymtorch.unwrap_tensor(self.dof_state),
gymtorch.unwrap_tensor(human_indices), len(human_indices))
See "trifinger" example env code
As soon as I call self.gym.set_dof_state_tensor_indexed, env_ids becomes inaccessible
Output: