Replies: 4 comments
-
Do you know how to solve the problem now |
Beta Was this translation helpful? Give feedback.
-
Do you have any latest progress? |
Beta Was this translation helpful? Give feedback.
-
The failed function 'modify_rigid_body_properties' which is modifying the RigidObject some values specified in config (e.g rigid_body_enabled, kinematic_enabled). |
Beta Was this translation helpful? Give feedback.
-
You must define Physics API in your USD (if not already present) to be considered a rigid object. As mentioned in the The USD you are trying to import may not have physics API, so you can enable the following
After adding these to the root prim, you can import the rigid body using the RigidObjectCfg using a USD file. Adding below the code to add the Physics API to the USD root prim.
|
Beta Was this translation helpful? Give feedback.
-
Question
HI, I have imported a .usd file and set it to be rigid body, but it can not be set as rigid body.
-> CODE:
cfg = sim_utils.UsdFileCfg(
usd_path="~/Downloads/Cranfield.usd",
scale=(0.001, 0.001, 0.001),
rigid_props=sim_utils.RigidBodyPropertiesCfg(
rigid_body_enabled=True,
kinematic_enabled=True,
disable_gravity=False,
solver_position_iteration_count=8,
solver_velocity_iteration_count=0,
sleep_threshold=0.05,
stabilization_threshold=0.0025,
max_depenetration_velocity=1000.0,
),
)
cfg.func("/World/Objects/objects", cfg, translation=(0.0, 0.0, 1.0))
-> WARING:
2024-07-10 13:52:02 [7,144ms] [Warning] [omni.isaac.lab.sim.utils] Could not perform 'modify_rigid_body_properties' on any prims under: '/World/Objects/objects'. This might be because of the following reasons:
(1) The desired attribute does not exist on any of the prims.
(2) The desired attribute exists on an instanced prim.
Discovered list of instanced prim paths: ['/World/Objects/objects/Geometry/Cranfield_0/BolzenKlein_1_5', '/World/Objects/objects/Geometry/Cranfield_0/BolzenKlein_2_7', '/World/Objects/objects/Geometry/Cranfield_0/BolzenKleinEckig_1_8', '/World/Objects/objects/Geometry/Cranfield_0/BolzenKleinEckig_2_10']
Beta Was this translation helpful? Give feedback.
All reactions