Skip to content
Snippets Groups Projects

Resolve "components/RobotUnitSimulation: Wrong timestamps in 'RobotState/Proprioception'-memory"

Merged Patrick Dormanns requested to merge fix/robotunit-timestamps into master
All threads resolved!
@@ -642,7 +642,7 @@ void RobotUnitSimulation::rtUpdateSensors(bool wait)
}
// This should be the timestamp from the time where the data was queried
const IceUtil::Time now = TimeUtil::GetTime();
const IceUtil::Time now = armarx::rtNow();
//const IceUtil::Time now = IceUtil::Time::microSeconds(simulationDataTimestampInMicroSeconds);
const IceUtil::Time timeSinceLastIteration = now - sensorValuesTimestamp;
const float dt = static_cast<float>(timeSinceLastIteration.toSecondsDouble());
Loading