Open ahanjaya opened 4 days ago
Since the asset is instanceable, you cannot change the properties of its visual meshes (this includes the material assigned to them). You will first need to make the asset uninstanceable.
For more information: https://openusd.org/dev/api/_usd__page__scenegraph_instancing.html
You can find the following function useful: https://isaac-sim.github.io/IsaacLab/source/api/lab/omni.isaac.lab.sim.html#omni.isaac.lab.sim.utils.make_uninstanceable
Is this also the same reason that the asset is instanceable,
[Warning] [omni.isaac.lab.sim.utils] Could not perform 'modify_collision_properties' on any prims under: '/World/envs/env_0/Animation'. 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.
How to make_uninstanceable
I passed the prims_path, but causes different error
Thanks
Yes, that's the reason why that doesn't work. What error did you get? Can you provide more details?
I tried to make_uninstanceable with this commands:
for prim_path in sim_utils.find_matching_prim_paths("/World/envs/env_.*/Animation/.*/collisions"):
print(prim_path)
sim_utils.make_uninstanceable(prim_path)
and got following error:
/World/envs/env_0/Animation/trunk/collisions
2024-07-05 07:17:27 [11,037ms] [Warning] [omni.physx.tensors.plugin] prim '/World/envs/env_0/Animation/trunk/collisions/mesh_0' was deleted while being used by a shape in a tensor view class. The physics.tensors simulationView was invalidated.
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,039ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
2024-07-05 07:17:27 [11,040ms] [Error] [omni.physx.plugin] PhysX error: PxRigidActor::detachShape: shape is not attached to this actor!, FILE /builds/omniverse/physics/physx/source/physx/src/NpRigidActorTemplate.h, LINE 257
Question
How do we change the visual_material color of the robot? I added visual material to the spawn in ArticulationCfg, the color of the robot doesn't change and causes some environments are not working