luxonis / depthai-experiments

Experimental projects we've done with DepthAI.
MIT License
822 stars 364 forks source link

imu-frames-timestamp-sync.py got type error #456

Open ryanESX opened 1 year ago

ryanESX commented 1 year ago

use oakd-w-pro. And try python gen2-syncing/imu-frames-timestamp-sync.py it return following message:

FPS 931966.4307258327
Traceback (most recent call last):
  File "gen2-syncing/imu-frames-timestamp-sync.py", line 185, in <module>
    new_msg(msg, name, ts)
  File "gen2-syncing/imu-frames-timestamp-sync.py", line 153, in new_msg
    print(f"[Seq {rgb.getSequenceNum()}] Mid of RGB exposure ts: {td2ms(rgb_ts)}ms, RGB ts: {td2ms(rgb.getTimestampDevice())}ms, RGB exposure time: {td2ms(rgb.getExposureTime(), exposure=True)}ms")

I used depthai-2.20.2.0

Erol444 commented 1 year ago

Hi @ryanESX , Could you copy the full error message? Thanks, Erik

sgraybi commented 1 year ago

Fix in PR https://github.com/luxonis/depthai-experiments/pull/498