Skip to content

Commit 8ebcad8

Browse files
committed
resolve flaky test
1 parent 42673bd commit 8ebcad8

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
@@ -652,7 +652,6 @@ def _add_entities_from_cfg(self):
652652
continue
653653
# resolve regex
654654
require_clone = False
655-
asset_cfg = asset_cfg.copy()
656655
if hasattr(asset_cfg, "prim_path"):
657656
# In order to compose cloner behavior more flexibly, we ask each spawner to spawn prototypes in
658657
# 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
@@ -467,7 +467,7 @@ def _run_contact_sensor_test(
467467

468468
scene_cfg = ContactSensorSceneCfg(num_envs=1, env_spacing=1.0, lazy_sensor_update=False)
469469
scene_cfg.terrain = terrain
470-
scene_cfg.shape = shape_cfg
470+
scene_cfg.shape = shape_cfg.copy()
471471
test_contact_position = False
472472
if (type(shape_cfg.spawn) is sim_utils.SphereCfg) and (terrain.terrain_type == "plane"):
473473
test_contact_position = True
@@ -492,6 +492,8 @@ def _run_contact_sensor_test(
492492
track_contact_points=track_contact_points,
493493
filter_prim_paths_expr=filter_prim_paths_expr,
494494
)
495+
# replicating physx will mess up the test......
496+
scene_cfg.replicate_physics = False
495497
scene = InteractiveScene(scene_cfg)
496498

497499
# Play the simulation

0 commit comments

Comments
 (0)