Ros2 自己修改的cartographer代码编译后不生效的解决办法

63 篇文章 104 订阅 ¥9.90 ¥99.00
45 篇文章 130 订阅 ¥9.90 ¥99.00
10 篇文章 1 订阅
在尝试编译并运行自己修改过的Cartographer代码时,遇到不生效的问题。原因可能是ROS2在安装过程中已经在系统路径下生成了Cartographer的默认版本。通过删除/opt/ros/humble/include下的cartographer及相关ros子目录,可以确保系统使用修改后的代码。
摘要由CSDN通过智能技术生成

原因是ros2在安装一些库的时候,在ros2的路径下生成了cartographer,默认找到了ros下,导致的,把这些库删掉即可

kobe@kobe-NUC11PAHi7:/opt/ros/humble/include$ sudo rm -R cartographer

[sudo] kobe 的密码:

kobe@kobe-NUC11PAHi7:/opt/ros/humble/include$ sudo rm -R cartographer_ros

kobe@kobe-NUC11PAHi7:/opt/ros/humble/include$ sudo rm -R cartographer_ros_msgs/

kobe@kobe-NUC11PAHi7:/opt/ros/humble/lib$ sudo rm -R cartographer_ros/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kobesdu

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

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

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

打赏作者

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

抵扣说明:

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

余额充值