OdometryF2F: fixed published localScanMap in wrong frame

This commit is contained in:
matlabbe
2018-03-13 00:01:32 -04:00
parent ba011169b8
commit 257fe20c4f
2 changed files with 5 additions and 4 deletions

View File

@@ -207,7 +207,8 @@ Transform OdometryF2F::computeTransform(
info->words = newFrame.getWords();
info->localScanMapSize = tmpRefFrame.sensorData().laserScanRaw().size();
info->localScanMap = util3d::transformLaserScan(tmpRefFrame.sensorData().laserScanRaw(), t);
info->localScanMap = util3d::transformLaserScan(tmpRefFrame.sensorData().laserScanRaw(), tmpRefFrame.sensorData().laserScanRaw().localTransform().inverse()*t*tmpRefFrame.sensorData().laserScanRaw().localTransform());
}
}
else