File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
source/isaaclab/isaaclab/sensors/tacsl_sensor Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1414
1515import isaacsim .core .utils .torch as torch_utils
1616import omni .log
17- from isaacsim .core .prims import SdfShapePrim
1817from isaacsim .core .simulation_manager import SimulationManager
1918from pxr import Usd , UsdGeom , UsdPhysics
2019
@@ -325,13 +324,9 @@ def _create_physx_views(self) -> None:
325324 # Create SDF view for collision detection
326325 num_query_points = self .cfg .tactile_array_size [0 ] * self .cfg .tactile_array_size [1 ]
327326 mesh_path_pattern = contact_object_mesh .GetPath ().pathString .replace ("env_0" , "env_*" )
328- self ._contact_object_sdf_view = SdfShapePrim (
329- prim_paths_expr = mesh_path_pattern ,
330- name = "contact_object_sdf_view" ,
331- num_query_points = num_query_points ,
332- prepare_sdf_schemas = False ,
327+ self ._contact_object_sdf_view = self ._physics_sim_view .create_sdf_shape_view (
328+ mesh_path_pattern , num_query_points
333329 )
334- self ._contact_object_sdf_view .initialize (physics_sim_view = self ._physics_sim_view )
335330
336331 # Create rigid body views for contact object and elastomer
337332 body_path_pattern = contact_object_rigid_body .GetPath ().pathString .replace ("env_0" , "env_*" )
You can’t perform that action at this time.
0 commit comments