cartographer 常见问题及解决方法

1. Check failed: status == 0 (2 vs. 0) [string “include “map_builder.lua”…”]:36: attempt to index global ‘SPARSE_POSE_GRAPH’ (a nil value)

问题描述:出现这个问题的原因是map_builder.lua文件中没有SPARSE_POSE_GRAPH这个参数,这是由于cartographer更新导致的。
解决方案
删掉lua文件里SPARSE_POSE_GRAPH参数。

2. protobuff版本冲突问题

问题描述:

In file included from /home/zhangying/Downloads/cartographer/cartographer/common/ceres_solver_options.h:21:0,
                 from /home/zhangying/Downloads/cartographer/cartographer/common/ceres_solver_options.cc:17:
/usr/local/include/cartographer/common/proto/ceres_solver_options.pb.h:12:2: error: #error This file was generated by a newer version of protoc which is
 #error This file was generated by a newer version of protoc which is
  ^~~~~
/usr/local/include/cartographer/common/proto/ceres_solver_options.pb.h:13:2: error: #error incompatible with your Protocol Buffer headers. Please update
 #error incompatible with your Protocol Buffer headers.  Please update
  ^~~~~
/usr/local/include/cartographer/common/proto/ceres_solver_options.pb.h:14:2: error: #error your headers.
 #error your headers.

解决方案:
删除/usr/local/include/下的cartographer文件夹,重新编译安装cartographer

cd /usr/local/include
sudo rm -rf cartographer
cd ~/Downloads/cartographer
rm -rf bulid
mkdir build
cd build
cmake ..
make -j4
sudo make install
  • 2
    点赞
  • 5
    收藏
  • 打赏
    打赏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
评论 6

打赏作者

清风丶腾云

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值