From 8b653faf779ccfa8abb7360d59d58405614fd147 Mon Sep 17 00:00:00 2001 From: Mirko Waechter <mirko.waechter@kit.edu> Date: Fri, 29 Apr 2016 17:19:12 +0200 Subject: [PATCH] Increased tolerance in RobotStateTest --- source/RobotAPI/components/RobotState/test/RobotStateTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/RobotAPI/components/RobotState/test/RobotStateTest.cpp b/source/RobotAPI/components/RobotState/test/RobotStateTest.cpp index 74d791ec3..e414de12d 100644 --- a/source/RobotAPI/components/RobotState/test/RobotStateTest.cpp +++ b/source/RobotAPI/components/RobotState/test/RobotStateTest.cpp @@ -96,8 +96,8 @@ BOOST_AUTO_TEST_CASE(RobotStateComponentHistoryTest) config = env._rsc->getJointConfigAtTimestamp(t2 + 1); // future timestamp -> latest values should be returned BOOST_CHECK_EQUAL(config["Elbow L"], 1); config = env._rsc->getJointConfigAtTimestamp((t1 + t2) * 0.5); // interpolated values in the middle - BOOST_CHECK_CLOSE(config["Elbow L"], 0.5f, 0.001); + BOOST_CHECK_CLOSE(config["Elbow L"], 0.5f, 0.01); config = env._rsc->getJointConfigAtTimestamp(t1 + (t2 - t1) * 0.7); // interpolated values ARMARX_INFO_S << "value at t=0.7%: " << config["Elbow L"]; - BOOST_CHECK_CLOSE(config["Elbow L"], 0.7f, 0.001); + BOOST_CHECK_CLOSE(config["Elbow L"], 0.7f, 0.01); } -- GitLab