Open yl-wang996 opened 1 year ago
My code:
# cloth_asset_options.armature = 0.01 cloth_width = 1 cloth_length = 1 particles_num = 20 cloth_asset = gym.create_cloth_grid( sim, cloth_width, # int cloth_length, # int cloth_width/particles_num, # float cloth_length/particles_num, # float # gymapi.AssetOptions() )
1. When I call the function gym.create_cloth_grid(), it shows the following error:
gym.create_cloth_grid()
TypeError: create_cloth_grid(): incompatible function arguments. The following argument types are supported:1. (self: isaacgym._bindings.linux-x86_64.gym_37.Gym, arg0: isaacgym._bindings.linux-x86_64.gym_37.Sim, arg1: int, arg2: int, arg3: float, arg4: float) -> isaacgym._bindings.linux-x86_64.gym_37.Asset Invoked with: <isaacgym._bindings.linux-x86_64.gym_37.Gym object at 0x7f8af5362a30>, <isaacgym._bindings.linux-x86_64.gym_37.Sim object at 0x7f8af54942b0>, 1, 1, 0.05, 0.05, <isaacgym._bindings.linux-x86_64.gym_37.AssetOptions object at 0x7f8af5494630>
The above information said, I shouldn't use the isaacgym.gymapi.AssetOptions as the last parameter, but it do exist in the API document.
isaacgym.gymapi.AssetOptions
2.Then I try to do what the above error said, remove the isaacgym.gymapi.AssetOptions, and I found this function return None.
So my question is, What I suppose to do, to add a cloth into the environment? and also how get the state of this cloth?
My code:
1. When I call the function
gym.create_cloth_grid()
, it shows the following error:TypeError: create_cloth_grid(): incompatible function arguments. The following argument types are supported:1. (self: isaacgym._bindings.linux-x86_64.gym_37.Gym, arg0: isaacgym._bindings.linux-x86_64.gym_37.Sim, arg1: int, arg2: int, arg3: float, arg4: float) -> isaacgym._bindings.linux-x86_64.gym_37.Asset Invoked with: <isaacgym._bindings.linux-x86_64.gym_37.Gym object at 0x7f8af5362a30>, <isaacgym._bindings.linux-x86_64.gym_37.Sim object at 0x7f8af54942b0>, 1, 1, 0.05, 0.05, <isaacgym._bindings.linux-x86_64.gym_37.AssetOptions object at 0x7f8af5494630>
The above information said, I shouldn't use the
isaacgym.gymapi.AssetOptions
as the last parameter, but it do exist in the API document.2.Then I try to do what the above error said, remove the
isaacgym.gymapi.AssetOptions
, and I found this function return None.So my question is, What I suppose to do, to add a cloth into the environment? and also how get the state of this cloth?