koide3 / hdl_localization

Real-time 3D localization using a (velodyne) 3D LIDAR
BSD 2-Clause "Simplified" License
775 stars 310 forks source link

Delta time (dt) variable inside pose_system.hpp #82

Closed kunnalparihar closed 2 years ago

kunnalparihar commented 2 years ago

I am a little confused as to how did you choose dt as 0.01? https://github.com/koide3/hdl_localization/blob/master/include/hdl_localization/pose_system.hpp#L21 Imu frequency is 200 Hz I guess dt should be equal to (1 / imu_frequency)

Thank you in advance

koide3 commented 2 years ago

Yes, you are correct, and dt will be updated based on the last and current data timestamps.

https://github.com/koide3/hdl_localization/blob/1cdef711d66fdb4ec8969623dd2568eb3f45ce25/src/hdl_localization/pose_estimator.cpp#L66

kunnalparihar commented 2 years ago

okay, I got it. thanks