Skip to content

Commit 7c6445d

Browse files
authored
Fix (#31)
Fixing what slipped through in #16
1 parent 85f8aa7 commit 7c6445d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/grid_map_geo.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,12 @@ bool GridMapGeo::AddLayerOffset(const double offset_distance, const std::string
324324
return true;
325325
}
326326

327+
void GridMapGeo::setGlobalOrigin(ESPG src_coord, const Eigen::Vector3d origin) {
328+
// Transform global origin into CH1903 / LV03 coordinates
329+
maporigin_.espg = src_coord;
330+
maporigin_.position = origin;
331+
}
332+
327333
void GridMapGeo::AddLayerNormals(const std::string reference_layer) {
328334
grid_map_.add(reference_layer + "_normal_x");
329335
grid_map_.add(reference_layer + "_normal_y");

0 commit comments

Comments
 (0)