Fixed build against latest rtabmap version

This commit is contained in:
matlabbe
2025-05-26 16:16:36 -07:00
parent e9fa89110c
commit 5676b9a69e
+2 -3
View File
@@ -1630,9 +1630,8 @@ std::map<std::string, float> odomInfoToStatistics(const rtabmap::OdometryInfo &
{
if(!info.transform.isNull())
{
rtabmap::Transform diff = info.transformGroundTruth.inverse()*info.transform;
stats.insert(std::make_pair("Odometry/TG_error_lin/m", diff.getNorm()));
stats.insert(std::make_pair("Odometry/TG_error_ang/deg", diff.getAngle()*180.0/CV_PI));
stats.insert(std::make_pair("Odometry/TG_error_lin/m", info.transformGroundTruth.getDistance(info.transform)));
stats.insert(std::make_pair("Odometry/TG_error_ang/deg", info.transformGroundTruth.getAngle(info.transform)*180.0/CV_PI));
}
info.transformGroundTruth.getTranslationAndEulerAngles(x,y,z,roll,pitch,yaw);