From 1ebb26a6453dde5405bdc4be3680560d66dd1f47 Mon Sep 17 00:00:00 2001 From: Daisuke Nishimatsu Date: Sun, 19 Jul 2026 20:01:33 +1000 Subject: [PATCH] Match grid_map_pcl timer clock type This upstreams a generalized form of RoboStack build fix patch/ros-rolling-grid-map-pcl.osx.patch. Best guess rationale: processPointcloud records the start time with std::chrono::high_resolution_clock::now(), but the helper accepted a system_clock time_point. Matching the helper parameter to the clock used by the caller avoids implementation-dependent clock type mismatches, including libc++ configurations where high_resolution_clock is not system_clock. Signed-off-by: Tobias Fischer --- grid_map_pcl/include/grid_map_pcl/helpers.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grid_map_pcl/include/grid_map_pcl/helpers.hpp b/grid_map_pcl/include/grid_map_pcl/helpers.hpp index f3d9f38af..785ab94c6 100644 --- a/grid_map_pcl/include/grid_map_pcl/helpers.hpp +++ b/grid_map_pcl/include/grid_map_pcl/helpers.hpp @@ -42,7 +42,7 @@ void saveGridMap( const std::string & mapTopic); inline void printTimeElapsedToRosInfoStream( - const std::chrono::system_clock::time_point & start, + const std::chrono::high_resolution_clock::time_point & start, const std::string & prefix, const rclcpp::Logger & node_logger) {