Log inStart free
LESSON 25.15 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW

Synchronizing modality streams

Watch three sensor streams merge into one stream of fused frames.


Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.

Go Pro · $8.25/mo
EXPLAINER · 25.15 · SENSOR BAY3 STREAMS · 10, 20, 40 HZ
01
Stage 1 of 6 · Timestamps
Each sample carries a timestamp of its capture. Each stream has its own sampling rate: 10, 20 or 40 Hz.
Explain it simply

Each dot is one reading from a sensor, placed at the moment the sensor took it. That moment is its timestamp. The camera takes 10 pictures a second, so its dots sit 100 ms apart. The joints read 40 times a second, so their dots sit four times closer.

Three lanes on one time axis. Camera dots sit 100 ms apart, audio dots 50 ms, joint dots 25 ms.

samplesbuffer deadlinelate or misalignedfused framemissing
0100200300400500600700800900 mscamera10 Hzcapturedaudio20 Hzcapturedjoints40 Hzcapturedcapture timestampst = t₀ + k · 1000/f → camera every 100 ms, audio every 50 ms, joints every 25 ms0100200300400500600700800900 mscamera10 Hzcapturedaudio20 Hzcapturedjoints40 Hzcapturedcapture timestampst = t₀ + k · 1000/f → camera every 100 ms, audio every 50 ms, joints every 25 ms
Toy: 3 sensor streams over 800 ms, seeded delays
STAGE 1 / 6
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
tk=t0+k⋅1000f\sy{t}{data}{t_k} = \sy{t0}{data}{t_0} + k \cdot \frac{1000}{\sy{f}{param}{f}}
camera: t3=0+3⋅100010=300 ms\text{camera: } t_3 = 0 + 3 \cdot \frac{1000}{10} = 300\,\text{ms}

A stream with rate f stamps one sample every 1000/f ms.

Common mix-ups

MYTHThe arrival time is a good enough timestamp.

The fix, and 1 more mix-up with the diagram to show them, come with Pro.

Predict, then reveal
3 CHECKS · PRO
Q01With high jitter and capture stamps, does an 80 ms buffer still catch every camera picture?

Make your guess, then test it in the diagram. All 3 checks come with Pro.

PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
  • 5 more stages and 3 live controls
  • 2 mix-up cards and 3 predict-then-reveal checks
  • Watch it as a narrated video, in three voices
  • Every Pro lesson and capstone · 656 in total

$99 a year, or $15 a month. Cancel any time.