Hi, I’m trying to make a deformable body with deformable material in Isaac sim 2023.1.0, but I have a problem with the deformable material view can not get/set material properties.
I tried to get the paramter from material:
youngs_modulis = self.deformableMaterials.get_youngs_moduli(indices=env_ids, clone=False)
# env_ids is a tensor like torch.tensor[0,1,2,3,4,5,6,7,8,9,10]
# self.deformableMaterials is DeformableMaterialView
But I got the problem from deformable_material_view.py
return current_values[indices]
IndexError: index 1 is out of bounds for dimension 0 with size 1
Then I check the deformable_material_view.py code, I found that it uses physics_sim_view to get values:
current_values = self._physics_view.get_youngs_modulus()
The values only 1 demonsion:
[INFO] current values: tensor([[50000000.]])
It seems the config problem, but I do not know how to set, anybody knows how to deal with it?
Many thanks!