Skip to content
Snippets Groups Projects
Commit 5d963b74 authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Missing update

parent 8c4abb3a
No related branches found
No related tags found
No related merge requests found
......@@ -81,17 +81,17 @@ BOOST_AUTO_TEST_CASE(RobotStateComponentHistoryTest)
usleep(100000);
}
const IceUtil::Time t1In = IceUtil::Time::seconds(1);
const IceUtil::Time t2In = t1In + IceUtil::Time::milliSeconds(110);
const IceUtil::Time inT1 = IceUtil::Time::seconds(1);
const IceUtil::Time inT2 = inT1 + IceUtil::Time::milliSeconds(110);
NameValueMap joints;
joints["Elbow L"] = 0;
env._rsc->reportJointAngles(joints, t1In, true);
env._rsc->reportJointAngles(joints, inT1.toMicroSeconds(), true);
auto t1 = env._rsc->getSynchronizedRobot()->getTimestamp()->timestamp;
joints["Elbow L"] = 1;
env._rsc->reportJointAngles(joints, t2In, true);
env._rsc->reportJointAngles(joints, inT2.toMicroSeconds(), true);
auto t2 = env._rsc->getSynchronizedRobot()->getTimestamp()->timestamp;
BOOST_CHECK(t2 > t1);
......
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