Hi,
This warning is independent of icp, g2o is used for graph optimization. Using libpointmatcher may not remove this warning in your case. There is however no clear answer why marginals cannot be computed sometimes :(.
When
libpointmatcher is not installed, ICP is done with the
standard approach from the PointCloudLibrary (PCL), which lacks robustness (against outliers) in comparison to libpointmatcher's ICP.
cheers,
Mathieu