trajectoryError.cpp
#include <sophus/se3.hpp>
#include <unistd.h>
#include <string>
#include <iostream>
#include <fstream>
#include <cmath>
#include <pangolin/pangolin.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
using namespace std;
using namespace Eigen;
void ReadData(string FileName ,vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> &poses);
double ErrorTrajectory(vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_g,
vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_e);
void DrawTrajectory(vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_g,
vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_e);
int main(int argc, char **argv)
{
string GroundFile = "../groundtruth.txt";
string ErrorFile = "../estimated.txt";
double trajectory_error_RMSE = 0;
vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_g;
vector<Sophus::SE3d, Eigen::aligned_allocator<Sophus::SE3d>> poses_e;
ReadData(GroundFile,poses_g);
ReadData(ErrorFile,poses_e);
trajectory

本文介绍SLAM中用于评估轨迹误差的方法,通过`trajectoryError.cpp`程序计算得到的RMSE值为2.27589,详细讨论了这一指标在SLAM算法中的意义和应用。
最低0.47元/天 解锁文章
1260

被折叠的 条评论
为什么被折叠?



