From 69777cae65718752cf1f193a5f48d5a1d5c9707e Mon Sep 17 00:00:00 2001 From: Jaeyoung-Lim Date: Mon, 27 Nov 2023 14:58:38 +0100 Subject: [PATCH] Fix --- src/grid_map_geo.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/grid_map_geo.cpp b/src/grid_map_geo.cpp index 7fc78aa..a6130e6 100644 --- a/src/grid_map_geo.cpp +++ b/src/grid_map_geo.cpp @@ -324,6 +324,12 @@ bool GridMapGeo::AddLayerOffset(const double offset_distance, const std::string return true; } +void GridMapGeo::setGlobalOrigin(ESPG src_coord, const Eigen::Vector3d origin) { + // Transform global origin into CH1903 / LV03 coordinates + maporigin_.espg = src_coord; + maporigin_.position = origin; +} + void GridMapGeo::AddLayerNormals(const std::string reference_layer) { grid_map_.add(reference_layer + "_normal_x"); grid_map_.add(reference_layer + "_normal_y");