Temporal alignment of poses and depth images #58
-
Hi all, I'm trying to figure out where in the codebase is it being ensured that the pose estimate and depth image are temporally aligned. I usually rely on https://wiki.ros.org/message_filters/ApproximateTime for this purpose. However, I'm curious if wavemap contains a better solution. @victorreijgwart Let me know if you have thoughts! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi Kshitij, To find the pose of each depth image, wavemap does a TF lookup using the timestamp and TF frame name in the message's It's possible to manually specify a time offset using the input's Note that you can also manually specify what sensor frame name should be used in the TF lookups by setting The pose lookup is located here in the code. Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
Hi Kshitij,
To find the pose of each depth image, wavemap does a TF lookup using the timestamp and TF frame name in the message's
header.stamp
andheader.frame_id
fields.It's possible to manually specify a time offset using the input's
time_offset
ROS param, which can be useful if the message timestamps are offset with respect to the odometry source and you have a good estimate for this error. For depth cameras, for example, we use the time_offset Kalibr estimates as part of its extrinsic calibration routine. ROS TF will then interpolate the pose as needed based on what poses are available. When the odometry is estimated at a reasonable rate, this works well in our experience.Note that …