luxonis / depthai-core

DepthAI C++ Library
MIT License
238 stars 128 forks source link

Updating getCameraExtrinsics v3 #1142

Closed jakaskerl closed 1 week ago

jakaskerl commented 1 month ago

Update getCameraExtrinsics() so any two sockets can be used regardless of how they are linked.

Calculation changed to:

  1. src -> origin
  2. dst -> origin
  3. src->origin->dst

Due to some inaccuracies in calculations, the results might be slightly different than the old method. Tested for cyclic links as well.