From bf3c0c1d5ddd6d7bb65694e24fcf544563413e96 Mon Sep 17 00:00:00 2001 From: Arman Aydin <86849247+goldenJester@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:31:01 -0700 Subject: [PATCH] Update test_transition_rules.py Final changes to the transition test --- tests/test_transition_rules.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/tests/test_transition_rules.py b/tests/test_transition_rules.py index 20101d772..e881ce2d9 100644 --- a/tests/test_transition_rules.py +++ b/tests/test_transition_rules.py @@ -1563,17 +1563,17 @@ def test_slicer_volume_sharp_end(): # Let apple settle - for _ in range(50): + for _ in range(100): og.sim.step() # knife.keep_still() knife.set_position_orientation( position=apple.get_position() + np.array([-0.15, 0.0, 0.2]), - orientation=T.euler2quat([-np.pi / 4, 0, 0]), + orientation=T.euler2quat([-np.pi, 0, 0]), ) # Step simulation for a bit so that apple is sliced - for i in range(10000): + for i in range(100): og.sim.step() # Check if apple is sliced @@ -1599,17 +1599,17 @@ def test_slicer_volume_blunt_end(): place_obj_on_floor_plane(knife) # Let apple settle - for _ in range(50): + for _ in range(100): og.sim.step() knife.keep_still() knife.set_position_orientation( - position=apple.get_position() + np.array([-0.15, 0.0, 0.15]), - orientation=T.euler2quat([np.pi / 2, 0, 0]), + position=apple.get_position() + np.array([-0.15, 0.0, 0.2]), + orientation=T.euler2quat([np.pi, 0, 0]), ) # Step simulation for a bit so that apple is sliced - for i in range(100): + for i in range(1000): og.sim.step() @@ -1622,4 +1622,5 @@ def test_slicer_volume_blunt_end(): og.sim.remove_object(knife) if __name__ == "__main__": + test_slicer_volume_blunt_end() test_slicer_volume_sharp_end() \ No newline at end of file