hdl_graph_slam icon indicating copy to clipboard operation
hdl_graph_slam copied to clipboard

UTM origin coordinate precision loss

Open ksuszka opened this issue 5 years ago • 2 comments

When a final map is saved with utm: false parameter, then UTM origin is substracted from all points and it is saved to accompanying .utm file. However precision of serialized coordinates is limited and it can cause a few meters displacement.

In my case, value "5572094.155411" was saved as "5.57209e+06".

ksuszka avatar Feb 13 '21 15:02 ksuszka

Thanks for reporting the issue. I fixed the text format so the precision is preserved. It'll be merged into the main branch soon.

koide3 avatar Feb 16 '21 07:02 koide3

I just noticed that there are two separate functions affected by this formatting issue. I've create PR https://github.com/koide3/hdl_graph_slam/pull/185 with your fix applied to the second function.

ksuszka avatar Feb 28 '21 14:02 ksuszka