stereolabs / zed-ros-wrapper

ROS wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros/
MIT License
441 stars 389 forks source link

rosbag recorded imu and image sampling intervals are not stable #950

Open yaanggny opened 1 month ago

yaanggny commented 1 month ago

Preliminary Checks

Description

When using Kalibr for IMU-camera calibration of ZED2i, there is a difference in rotation and translation compared to the given values. We compared the timestamps of the imu data and image data output by ROS and found that the sampling interval was unstable, with fluctuations reaching several milliseconds. However, the sample interval in the sample data provided by Kalibr is very stable, and I am not sure if this is the reason for the calibration failure.

Steps to Reproduce

  1. build zed-ros-wrapper as README.
  2. fix params/common.yaml and params/zed2i.yaml
  3. roslaunch zed_wrapper zed2i.launch
  4. rosbag record /zed2i/zed_node/left/image_rect_color /zed2i/zed_node/imu/data_raw

img_v2_86265f39-3c26-41f3-a581-c2e7f624ba4l img_v2_063f5fde-e301-4be5-9826-accce4a0b92l

Expected Result

output sampling interval is stable or has a small fluctuation.

Actual Result

IMU sample intervals: (200Hz) img_v2_0ed7e5e5-48c1-4754-aba0-a5a98abeedcl

left cam image (rectified, @VGA, 15Hz) sample intervals:
img_v2_cb2217c5-506a-47fc-987a-d071b61b37el


IMU @200Hz img_v2_67e6c5da-ac60-4794-8227-efc53c7864al

left cam image (rectified, @HD720, 30Hz) sample intervals:
img_v2_e4a280a9-c07e-49cd-b157-a1ed2be9ba7l

ZED Camera model

ZED2i

Environment

OS: Ubuntu 20.04 
CPU: Intel i7-11850H
GPU: RTX A3000
ZED SDK: v4.1.2, v4.1.0, v3.8.x
ROS: Noetic

Anything else?

No response

github-actions[bot] commented 2 days ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days