From 27ee1b3d5e670eb27f066a504b0407b9b5b790b9 Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Mon, 26 May 2025 00:42:12 +0900 Subject: [PATCH] Do not use purely random value since it causes flakiness --- test/test_kinematics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_kinematics.py b/test/test_kinematics.py index 3852adc043..a9c0a8c806 100644 --- a/test/test_kinematics.py +++ b/test/test_kinematics.py @@ -22,6 +22,7 @@ class TestKinematics(EnvironmentSetup): def test_bodybasic(self): self.log.info('check if the joint-link set-get functions are consistent along with jacobians') + random.seed(100) # This seed value is randomly selected and no preference about itself. env=self.env with env: for envfile in g_envfiles:#+['testdata/bobcat.robot.xml']: @@ -536,6 +537,7 @@ def ComputePotentialEnergy(body,dofvalues): def test_hessian(self): self.log.info('check the jacobian and hessian computation') + random.seed(100) # This seed value is randomly selected and no preference about itself. env=self.env for envfile in ['robots/barrettwam.robot.xml']:#g_robotfiles: env.Reset()