From 91903af173003cd92ad8d6c5ff688e73618bcfb6 Mon Sep 17 00:00:00 2001 From: HiroIshida Date: Sun, 4 Aug 2024 08:18:12 +0900 Subject: [PATCH] test: fix multiple trial in ik --- python/tests/test_ik.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/tests/test_ik.py b/python/tests/test_ik.py index bc5bb93..c0bfe8f 100644 --- a/python/tests/test_ik.py +++ b/python/tests/test_ik.py @@ -17,8 +17,10 @@ def _test_ik(with_rot: bool, with_self_collision: bool): ineq_cst = None lb, ub = fs.angle_bounds() - ret = solve_ik(eq_cst, ineq_cst, lb, ub, None) - print(ret) + for _ in range(20): + ret = solve_ik(eq_cst, ineq_cst, lb, ub, None) + if ret.success: + break assert ret.success