diff --git a/script/tools/sample_random_transition.py b/script/tools/sample_random_transition.py index 673f4b4b73a80a22e38f5d3bfa9781c04f29bae9..6560e8b499d57fcbe5c3f8350d8e1167ed63ed6b 100644 --- a/script/tools/sample_random_transition.py +++ b/script/tools/sample_random_transition.py @@ -80,10 +80,6 @@ def sampleRandomStateFlatFloor(fullBody,limbsInContact,z): s0, success = StateHelper.addNewContact(s0,limb,p,n,lockOtherJoints=True) if not success: break - if success : - sProj = projectMidFeet(fullBody,s0) - if sProj is not None: - s0 = sProj if success : # check stability success = fullBody.isStateBalanced(s0.sId,5) @@ -111,10 +107,6 @@ def sampleRandomStateStairs(fullBody,limbsInContact,zInterval,movingLimb,z_movin s0, success = StateHelper.addNewContact(s0,limb,p,n,lockOtherJoints=True) if not success: break - if success : - sProj = projectMidFeet(fullBody,s0) - if sProj is not None: - s0 = sProj if success : # check stability success = fullBody.isStateBalanced(s0.sId,5)