Skip to content
Snippets Groups Projects
Commit 8b653faf authored by Mirko Wächter's avatar Mirko Wächter
Browse files

Increased tolerance in RobotStateTest

parent c05170ea
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment