From 638e2133bf42eeaec83d09a46746e081414f1594 Mon Sep 17 00:00:00 2001 From: Devansh Date: Sun, 19 Jan 2025 20:38:56 -0500 Subject: [PATCH] bug fix, to ensure that the timestamp comparison works with rosbags. --- nvblox_ros/src/lib/transformer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvblox_ros/src/lib/transformer.cpp b/nvblox_ros/src/lib/transformer.cpp index a5df5755..f1ded464 100644 --- a/nvblox_ros/src/lib/transformer.cpp +++ b/nvblox_ros/src/lib/transformer.cpp @@ -130,7 +130,7 @@ bool Transformer::lookupTransformTf( bool Transformer::lookupTransformQueue(const rclcpp::Time & timestamp, Transform * transform) { // Get latest transform - if (timestamp == rclcpp::Time(0)) { + if (timestamp == rclcpp::Time(0, 0, timestamp.get_clock_type())) { if (transform_queue_.empty()) { return false; }