Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import us.ihmc.commons.thread.RepeatingTaskThread;
import us.ihmc.commons.thread.ThreadTools;
import us.ihmc.log.LogTools;
import us.ihmc.robotDataLogger.ZEDSDKAnnounce;
import us.ihmc.zed.SL_InitParameters;
import us.ihmc.zed.SL_RuntimeParameters;
import us.ihmc.zed.ZEDTools;
Expand Down Expand Up @@ -132,6 +133,11 @@ public void grab()
}
}

public void synchronize(ZEDSDKAnnounce message)
{
controllerZeroInSensorFrame = message.getSensorTimestamp() - message.getControllerTimestamp();
}

public boolean isClosed()
{
return closed;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ private void onZEDSDKAnnounceMessage(ZEDSDKAnnounce message)
if (zedLoggers.containsKey(announceHash))
{
ZEDSVOLogger zedSVOLogger = zedLoggers.get(announceHash);
zedSVOLogger.synchronize(message);

if (zedSVOLogger.isClosed())
{
Expand Down