Skip to content

Commit 85bf2ec

Browse files
committed
resolve flaky test
1 parent 265759c commit 85bf2ec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

source/isaaclab/isaaclab/scene/interactive_scene.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,6 @@ def _add_entities_from_cfg(self):
649649
continue
650650
# resolve regex
651651
require_clone = False
652-
asset_cfg = asset_cfg.copy()
653652
if hasattr(asset_cfg, "prim_path"):
654653
# In order to compose cloner behavior more flexibly, we ask each spawner to spawn prototypes in
655654
# prepared /World/template path, once all template is ready, cloner can determine what rules to follow

source/isaaclab/test/sensors/test_contact_sensor.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def _run_contact_sensor_test(
422422

423423
scene_cfg = ContactSensorSceneCfg(num_envs=1, env_spacing=1.0, lazy_sensor_update=False)
424424
scene_cfg.terrain = terrain
425-
scene_cfg.shape = shape_cfg
425+
scene_cfg.shape = shape_cfg.copy()
426426
test_contact_position = False
427427
if (type(shape_cfg.spawn) is sim_utils.SphereCfg) and (terrain.terrain_type == "plane"):
428428
test_contact_position = True
@@ -447,6 +447,8 @@ def _run_contact_sensor_test(
447447
track_contact_points=track_contact_points,
448448
filter_prim_paths_expr=filter_prim_paths_expr,
449449
)
450+
# replicating physx will mess up the test......
451+
scene_cfg.replicate_physics = False
450452
scene = InteractiveScene(scene_cfg)
451453

452454
# Play the simulation

0 commit comments

Comments
 (0)