Skip to content

Commit bf7cc8c

Browse files
committed
FIX: Wrong transformation applied to ENU-MAP
1 parent 921dd9e commit bf7cc8c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

mola_georeferencing/apps/mola-mm-add-geodetic-cli.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,6 @@ void add_geodetic_fields_to_layer(
143143
const auto& ys = pointMap.getPointsBufferRef_y();
144144
const auto& zs = pointMap.getPointsBufferRef_z();
145145

146-
// Transform map->ENU using the inverse of T_enu_to_map
147-
const auto T_map_to_enu = -georef.T_enu_to_map.mean;
148-
149146
// Process each point
150147
size_t progressCounter = 0;
151148
for (size_t i = 0; i < numPoints; i++)
@@ -154,8 +151,7 @@ void add_geodetic_fields_to_layer(
154151
const mrpt::math::TPoint3D ptMap(xs[i], ys[i], zs[i]);
155152

156153
// Transform to ENU frame
157-
mrpt::math::TPoint3D ptENU;
158-
T_map_to_enu.composePoint(ptMap, ptENU);
154+
const mrpt::math::TPoint3D ptENU = georef.T_enu_to_map.mean.composePoint(ptMap);
159155

160156
try
161157
{

0 commit comments

Comments
 (0)