Failed to process package ‘cartographer_ros‘ :
目录
遇到这个问题分为两种情况
第一种
第二种
cartographer安装成功后可以通过下面代码测试
下载cartographer 例子数据包
如果你想再次打开相应的2D或者3D模型
遇到了两三天的问题,差点就把Ubuntu20.04给卸载重新安装个18.04的Ubuntu~~
Failed to process package 'cartographer_ros' :
遇到这个问题分为两种情况
第一种
看Cmake Error上面两行 它会提示:ImportError:"…………………"No module named 'catkin_pkg'
这时在 命令行里面输入
catkin_make_isolated --install --use-ninja -DPYTHON_EXECUTABLE=/usr/bin/python2
第二种
看Cmake Error下面两行 它会提示:Could NOT find PythonInterp: Found unsuitable version"你的python版本",but required is at least "3"(found /usr/bin/python)
这时在命令行里面输入
catkin_make_isolated --install --use-ninja -DPYTHON_EXECUTABLE=/usr/bin/python3
(它提示至少python 3.0以上 如果你的python版本过低:看这里
下载python3.7.2安装包
wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgz
新建安装路径(根据个人喜好),然后解压安装包
mkdir -p /usr/local/python3
tar -zxvf Python-3.7.2.tgz
进入解压后的路径编译,安装
cd cd Python-3.7.2
./configure --prefix=/usr/local/python3
make && make instal
编译安装成功后,修改软连接
rm /usr/bin/python
rm /usr/bin/pip
ln -s /usr/local/python3/bin/python3 /usr/bin/python
ln -s /usr/local/python3/bin/pip3 /usr/bin/pi
检查安装
python --version #输出版本号为3.7.2即升级成功
)
cartographer安装成功后可以通过下面代码测试
下载cartographer 例子数据包
2D数据包下载的命令如下:
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/backpack_2d/cartographer_paper_deutsches_museum.bag
3D数据包下载的命令如下:
wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/backpack_3d/with_intensities/b3-2016-04-05-14-14-00.bag
launch数据包
直接执行launch语句来run数据包,可能会报错,所以通常加一句:
source install_isolated/setup.bash
launch 2D对应2D数据包:
roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=${HOME}/Downloads/cartographer_paper_deutsches_museum.bag
launch 3D对应3D数据包:
roslaunch cartographer_ros demo_backpack_3d.launch bag_filename:=${HOME}/Downloads/b3-2016-04-05-14-14-00.bag
运行成功后如下所示:
如果你想再次打开相应的2D或者3D模型
打开终端ctrl+alt+t
cd cartographer_ws
刷新一下环境变量
source install_isolated/setup.bash
2D的
roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=//你的2D包的路径
3D的换成
roslaunch cartographer_ros demo_backpack_3d.launch bag_filename:=你的3D包的路径
参考文章:
(46条消息) Linux系统Ubuntu Python2.7升级Python3.7 踩雷先锋_livre7的博客-CSDN博客
(46条消息) Ubuntu + ROS 安装Google-Cartographer建图导航测试bag_汉文修士的博客-CSDN博客
Failed to process package ‘cartographer_ros‘ :相关推荐
- 【es-未解决】es 报错 failed to process cluster event (put-mapping) within 30s
文章目录 1.概述 1.概述 出现的原因忘记了,没有去解决,先记录一下 org.elasticsearch.cluster.metadata.ProcessClusterEventTimeoutExc ...
- SVN报错Cleanup问题解决:Cleanup failed to process the following paths:Can‘t revert
工作的时候遇到SNV 的clean up 失败问题,尝试了很多方法,最后找到了有用的方法做个总结. (文章中有些文件路径涉及公司,所以隐藏了,大概知道是文件路径就可以了) 如果clean up 出现什 ...
- 【Unity3D 问题总结】Failed to import package with error: Couldn‘t decompress package
报错问题:Failed to import package with error: Couldn't decompress package 今天在导入一个资源包的时候突然提示报错:Failed to ...
- SpringBoot微服务项目报错:Failed to process import candidates for configuration class [springfox.boot...
具体错误: [main] ERROR org.springframework.boot.SpringApplication - Application run failed org.springfra ...
- Failed to process import candidates for configuration class [com.wjm.springcloud.Application]; neste
Failed to process import candidates for configuration class [com.wjm.springcloud.Application]; neste ...
- Failed to process import candidates for configuration class [cn.zlc.eurekaservice.EurekaServiceAppl
1.问题描述:在一个项目中添加了一个eureka注册中心服务端子模块,eureka模块依赖为在这里插入代码片 <?xml version="1.0" encoding=&qu ...
- Visual Studio 2019 Failed to load package MonoAndroidDesignerPackage
新安装的Visual Studio2019启动的时候弹出错误对话框,提示"Failed to load package MonoAndroidDesignerPackage,重启可以解决&q ...
- 【SVN】Clean failed to process the following paths:
问题描述 TortoiseSVNCleanup failed to process the following paths:"Directory Path" 浠ュ墠鐨勬搷浣滄病鏈夊 ...
- 虚幻图文笔记:TravelFailure: ClientTravelFailure, Reason for Failure: ‘Failed to load package ‘问题的解决
问题描述 游戏中目前有两个Level:一个登录Level,一个游戏Level 登录Level跳转到游戏Level是没问题的,当角色在游戏Level失败需要重新开始游戏Level的时候报错. 运行exe ...
最新文章
- html5 lineheight属性,HTML中line-height的继承
- SQL Server 执行计划
- STM32 电机教程 26 - ST MCLIB实战之增量式编码器位置传感FOC方案
- IDEA_Debug_checks references injected by intellilang plugin
- 算法题目中经典问题(易错点)
- 前端学习(1169):实例数组find
- 自学PHP有哪些书籍和教程值得推荐?
- mysql教程查询语句_mysql-Mysql 查询语句怎么写?
- [开源]STM32F103RBT6最小系统,LEDx2,KEYx4
- 三言两语说清“线性流程”
- VS 编译选项如何设置以及对性能的影响1
- 批量查询数据的sql语句
- Word弹窗提示“拼写或语法错误太多,无法继续显示”的处理办法
- Kafka集群搭建配置
- Java调用的高德api,通过经纬度查询地址信息 - 记录
- python数据分析实验报告_数据聚合
- 10/13 Total variation loss 全变分
- C1——supermap获取对象的中心位置
- 蓝桥杯 青少年创意编程大赛 scratch组 (三)
- Python实现数字的补数的两种方法