视觉slam十四讲ch3/ch4中
错误:cannot find trajectory file at ./examples/trajectory.txt
原因:路径设置错误,把
string groundtruth_file = "./example/groundtruth.txt";
改为:
string groundtruth_file = "/home/alexander/Downloads/slambook2master/ch4/example/groundtruth.txt";
这里改成自己文件的路径即可。我还一直以为是自己的pangolin包的问题,结果是文件路径的问题。