Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to ensure time consistency between the IMU and image data? #5

Open
lida2003 opened this issue Sep 20, 2024 · 0 comments
Open

How to ensure time consistency between the IMU and image data? #5

lida2003 opened this issue Sep 20, 2024 · 0 comments

Comments

@lida2003
Copy link

A: IMU data is re-calbrated or keep consistent with the time of companion computer by mavlink_msg_timesync. Fair enough!

B: I didn't know if below calculation can keep video time consistent with the companion computer?

-- code from https://github.com/chobitsfan/libcamera-apps/blob/ros_img/apps/libcamera_hello.cpp

  1. systime - boot time?????
    uint64_t boot_epoch_offset = epoch_ts.tv_sec * 1000000000 + epoch_ts.tv_nsec - (boot_ts.tv_sec * 1000000000 + boot_ts.tv_nsec);
  1. what's this sensor_ts ? sensor has a timestamp?
        auto sensor_ts = completed_request->metadata.get(controls::SensorTimestamp);
        uint64_t sensor_ts_epoch = *sensor_ts + boot_epoch_offset;
        ros::Time sensor_ros_ts(sensor_ts_epoch / 1000000000, sensor_ts_epoch % 1000000000);

Really confused here. Please help.

@lida2003 lida2003 changed the title how to make time consistency of imu and image? how to make time consistent with imu and image? Sep 20, 2024
@lida2003 lida2003 changed the title how to make time consistent with imu and image? How to ensure time consistency between the IMU and image data? Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant