First of all thank you for your time. I bought this camera from official website of the Arducam for my Visual Inertial Odometry project. The main interesting for me was to have camera and imu in hardware sync, and this camera noted that in its description (not specifically said hardware, but it specified as in sync). So, I want to get vision and IMU data in sync. The problem is that I cannot find any documentation or source code to get it work. Ok, I have found below repository which says it supports camera B0678, which is mine in this case, but when I run it I got below error:
Below is the code I have tried. This is directly from official repo of Arducam:
from arducam_uvc_stereo_sdk import open_device, scan_devices
# Scan for devices
devices = scan_devices()
if not devices:
raise RuntimeError("no devices found")
# Print device list
for i, dev in enumerate(devices):
print(
f"device[{i}]: vid=0x{dev.vid:04x} pid=0x{dev.pid:04x} "
f"node={dev.video_node} bus={dev.bus_number} address={dev.device_address}, opencv={dev.opencv}"
)
# Select the first device
dev = devices[0]
# Read calibration data from the device
camera = open_device(dev)
version, json_text = camera.read_json()
print(f"version={version}")
print(f"json={json_text}")
I run it with sudo. Device is opened successfully, but read_json part creates problem. So, I would ask you if it is possible for you to clarify for me if IMU and camera are sync and if yes how can I read IMU and camera data with minimum jitter. Thank you very much.
Ok, I have solved the issue with the above reading configuration issue. It was because I have to fist write the data into register before read. But my question is:
Are camera and imu in sync in this sensor suit?
If yes, is this hardware sync (do they share the same clock)?
If yes, how can I get timestamp of IMU and frame? They should be synched hardware timestamps.
Thanks for the update. Glad to hear you’ve resolved the register reading issue.
Regarding synchronization between the camera and IMU, please note that this camera kit does not provide built-in synchronization between the two devices .
To answer your questions:
Are the camera and IMU synchronized?
No. We have not implemented internal synchronization between the camera frames and IMU measurements.
Is hardware synchronization supported?
No. The camera and IMU do not share a common hardware synchronization clock.
How can I synchronize camera frames and IMU data?
You would need to implement synchronization on the host side. We recommend recording timestamps when your application receives camera frames and IMU measurements, then matching the data based on those timestamps.
Please note that host-side timestamps are not equivalent to hardware-synchronized timestamps, as communication and processing delays may introduce some timing differences.
If your application requires camera and IMU data to be aligned, you will need to handle this synchronization in your own software.
I understood. Thank you very much for your response. Can you also provide how can I read imu and camera data correctly? Because when I tru to read imu data, at 30 fps of camera data, I got 140HZ imu data. And it comes with bursts. Am i reading data incorrectly?