-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
version 2.21.0 imu(gyro/acce)timestamp is error #3980
Comments
@hitxuhao hello, |
It seems that different stream has different clock, is there some API to convert the stream's clock to system clock? |
Sorry, the image uploading is failed. I will describe the D435iTimeStamp.png Info. Camera Model: D435i Depth Stream TimeStamp: 1558094048043.5 B.T.W, T265 Module works very well, every stream uses system clock. |
@zjcs hi, @hitxuhao hello, did you manage to troubleshoot it ? |
@zjcs, regarding the other question:
|
@ev-mp Thanks very much. Now, (1) the timestamp of RGB and Depth are based ms, they are only host arrival timestamp. (2) the timestamp of Acc and Gyro are based ms, they can get HW timestamp and host arrival timestamp. So, there still is some trouble of RGB and Depth timestamp. Do you meet the simillar issuse? B.t.w, due to all frames host arrival timestamp are available now, I are able to work again, thank you again. |
@zjcs, I need to correct my previous statement - getting HW timestamps on Windows is |
@zjcs , this seem to be resolved, and I'm closing it. |
hardware:d435i
software_version:2.21.0
problem:gyro/accel devices timestamp is error
motion example:
auto profile = pipe.start(cfg, [&](rs2::frame frame)
{
// Cast the frame that arrived to motion frame
auto motion = frame.asrs2::motion_frame();
// If casting succeeded and the arrived frame is from gyro stream
if (motion && motion.get_profile().stream_type() == RS2_STREAM_GYRO && motion.get_profile().format() == RS2_FORMAT_MOTION_XYZ32F)
{
// Get the timestamp of the current frame
double ts = motion.get_timestamp();
// std::cout<<"gyro:\n"<<gyro_data<<std::endl;
// Get gyro measures
rs2_vector gyro_data = motion.get_motion_data();
print result:
accel timestamp:184942.757784 x:1.274864 y:-9.767424 z:0.804145
gyro timestamp:1557827082567.210449 x:-0.006981 y:0.000000 z:0.005236
gyro timestamp:1557827082572.211670 x:-0.010472 y:0.000000 z:0.005236
gyro timestamp:1557827082577.211914 x:-0.006981 y:-0.001745 z:0.005236
gyro timestamp:1557827082582.209229 x:-0.012217 y:0.000000 z:0.003491
accel timestamp:184958.534785 x:1.274864 y:-9.806650 z:0.804145
gyro timestamp:1557827082587.209961 x:-0.005236 y:0.000000 z:0.005236
gyro timestamp:1557827082592.209961 x:-0.003491 y:0.000000 z:0.006981
gyro timestamp:1557827082597.190430 x:-0.006981 y:-0.001745 z:0.001745
accel timestamp:184974.312786 x:1.245445 y:-9.747809 z:0.764919
gyro timestamp:1557827082602.209473 x:0.000000 y:0.000000 z:0.000000
gyro timestamp:1557827082607.209229 x:0.000000 y:0.000000 z:0.000000
gyro timestamp:1557827082612.209961 x:0.001745 y:0.001745 z:0.000000
accel timestamp:184990.088787 x:1.255251 y:-9.747809 z:0.804145
gyro timestamp:1557827082617.208984 x:0.000000 y:0.005236 z:0.005236
gyro timestamp:1557827082622.208496 x:0.000000 y:0.001745 z:0.000000
gyro timestamp:1557827082627.208008 x:-0.005236 y:0.000000 z:0.001745
accel timestamp:185005.864787 x:1.294478 y:-9.767424 z:0.892405
gyro timestamp:1557827082632.225342 x:-0.008727 y:-0.005236 z:0.001745
gyro timestamp:1557827082637.206787 x:-0.013963 y:0.000000 z:0.000000
gyro timestamp:1557827082642.206055 x:-0.013963 y:0.000000 z:0.001745
accel timestamp:185021.641788 x:1.274864 y:-9.787037 z:0.853179
gyro timestamp:1557827082647.224854 x:-0.017453 y:-0.001745 z:0.010472
gyro timestamp:1557827082652.214600 x:-0.010472 y:-0.003491 z:0.005236
gyro timestamp:1557827082657.211426 x:-0.010472 y:0.003491 z:0.006981
accel timestamp:185037.417789 x:1.245445 y:-9.747809 z:0.745305
gyro timestamp:1557827082662.205078 x:-0.012217 y:-0.001745 z:0.003491
gyro timestamp:1557827082667.475830 x:-0.008727 y:0.000000 z:0.000000
gyro timestamp:1557827082672.456787 x:-0.005236 y:0.001745 z:0.001745
accel timestamp:185053.195790 x:1.225831 y:-9.767424 z:0.725692
gyro timestamp:1557827082677.456299 x:0.000000 y:0.005236 z:0.001745
gyro timestamp:1557827082682.456055 x:0.000000 y:0.000000 z:0.000000
gyro timestamp:1557827082687.454102 x:0.000000 y:0.000000 z:0.003491
gyro timestamp:1557827082692.456055 x:-0.000000 y:-0.005236 z:0.003491
absoulately:
timestamp is wrong, I'm disappointed about sdk
The text was updated successfully, but these errors were encountered: