mirror of
https://github.com/introlab/rtabmap_ros.git
synced 2026-10-04 00:37:46 +08:00
Fixed build against latest rtabmap version
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user