gnss_poser does not parse MGRS zone correctly #2085
Labels
component:sensing
Data acquisition from sensors, drivers, preprocessing. (auto-assigned)
type:bug
Software flaws or errors.
Checklist
Description
In GNSSStat, there is no support for MGRS zone (e.g. "53SPU"). There is a
int zone
which can be used for utm zone, but MGRS would need a string.Yet, in the
UTM2MGRS
function, the MGRS zone (e.g. "53SPU") is converted toint
usingstod
:autoware.universe/sensing/gnss_poser/include/gnss_poser/convert.hpp
Line 146 in d5db3ac
There are 2 problems with this piece of code:
stod
instead notstoi
std::stod("53SPU")
returns53.0
, which looses the second part of the codeSPU
Although the value
mgrs.zone
is not used elsewhere in gnss_poser, it could cause some issue in the future.Expected behavior
N/A
Actual behavior
N/A
Steps to reproduce
N/A
Versions
No response
Possible causes
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: