From 529e197d190fbe31af71298bfb2aab498dcd3d1c Mon Sep 17 00:00:00 2001 From: Ryan Friedman Date: Tue, 16 Jan 2024 21:22:10 -0700 Subject: [PATCH] Add missing timestamp for grid_map message Signed-off-by: Ryan Friedman --- src/test_tif_loader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test_tif_loader.cpp b/src/test_tif_loader.cpp index a1dddc4..f49854a 100644 --- a/src/test_tif_loader.cpp +++ b/src/test_tif_loader.cpp @@ -66,6 +66,7 @@ class MapPublisher : public rclcpp::Node { private: void timer_callback() { auto msg = grid_map::GridMapRosConverter::toMessage(map_->getGridMap()); + msg->header.stamp = now(); original_map_pub_->publish(std::move(msg)); } rclcpp::TimerBase::SharedPtr timer_;