从0到ros2玩rmf
从装ubuntu20.0.4 -> rmf运行的历程(1)
- 根据电脑选择 传统 还是 efi去安装ubuntu
- 安装google
- 安装ros2(galactic)
- 构建rmf----(1)
- 构建rmf----(2)
- 构建rmf----(3)
根据电脑选择 传统 还是 efi去安装ubuntu
实验室电脑是uefi故参考:
https://blog.csdn.net/nienelong3319/article/details/79948847
安装完后,由于我是双显示屏,而其中一个显示屏又不亮,亮的显示屏又是副屏,导致误以为安装失败
看到屏幕啥都没有,快速移动鼠标,发现鼠标 直接输入密码,按enter就进来了。 tnnd
安装google
把梯子(clash)搭好后,下载google并安装
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo apt install ./google-chrome-stable_current_amd64.deb
安装ros2(galactic)
一开始用的源服务器,几个包无法下载,就换成了mirros.huawei的
安装参考:
https://docs.ros.org/en/galactic/Installation/Ubuntu-Install-Debians.html
构建rmf----(1)
此处依然使用上面的华为源(安装的过程中,不要中断!如果一定要中断,把包删干净,再重新下)
1.注意!!!!!!!!rmf-demos-gz完全没必要下载!!!可见后面
2.rmf.repos需要修改!!!见后面
sudo apt-get clean ros-galactic-rmf-demos-gz
sudo apt clean ros-galactic-rmf-demos-gz
//用于清理包
最后换成了腾讯的源。还遇到了两个问题:
1.文件尺寸不符,您使用的镜像正在同步中?
soul:修改 /etc/apt/sources.list 里的源,http 改为 https 后问题解决
2.更新系统时出现Hash校验和不符的错误
//使用如下命令清除临时文件:
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
构建rmf----(2)
这一部分 跟着官网来就行了
sudo apt update && sudo apt install \git cmake python3-vcstool curl \qt5-default \-y
python3 -m pip install flask-socketio
sudo apt-get install python3-colcon*sudo apt install python3-rosdep
sudo rosdep init
rosdep updatemkdir -p ~/rmf_ws/src
cd ~/rmf_ws
wget https://raw.githubusercontent.com/open-rmf/rmf/main/rmf.repos
vcs import src < rmf.reposcd ~/rmf_ws
rosdep install --from-paths src --ignore-src --rosdistro galactic -y
构建rmf----(3)
最捉摸不定的地方来了哈!!!
https://github.com/open-rmf/rmf_ros2 (是rmf中的一个包,我怀疑官方在这里没有对其很好的适配,希望以后可以修复。)
下载源码,尝试对其colcon build
出现问题:
意思大概是rmf_traffic-config这个包是1.4.0.的,但编译rmf_ros2需要版本到达2.0.0以上,因此:
https://github.com/open-rmf/rmf_traffic/tree/2.0.0,来到此网站,下载2.0.0版本的rmf_ros2的包,将其下载并解压到与rmf_ros2的统计目录即可。
但是我发现,在原来下的rmf包中,包含了rmf_traffic,但是,还是编译还是出错!经过查询发现是因为,rmf_ros2链接了旧的rmf_traffic,有一种解决方案是,把ros-galactic-rmf-*删除!因此:
sudo apt purge ros-galactic-rmf- *
之后,在进行编译,又有问题:
经过查询,需要下载galactic版本的ros_ign,故先删除之前编译的,修改rmf.repos,将其中的rod_ign版本改为galactic,再进行编译。
终于成功!
附上最终rmf.repos:
repositories:rmf/rmf_battery:type: giturl: https://github.com/open-rmf/rmf_battery.gitversion: mainrmf/rmf_internal_msgs:type: giturl: https://github.com/open-rmf/rmf_internal_msgs.gitversion: mainrmf/rmf_api_msgs:type: giturl: https://github.com/open-rmf/rmf_api_msgs.gitversion: mainrmf/rmf_ros2:type: giturl: https://github.com/open-rmf/rmf_ros2.gitversion: mainrmf/rmf_task:type: giturl: https://github.com/open-rmf/rmf_task.gitversion: mainrmf/rmf_traffic:type: giturl: https://github.com/open-rmf/rmf_traffic.gitversion: 2.0.0rmf/rmf_utils:type: giturl: https://github.com/open-rmf/rmf_utils.gitversion: mainrmf/ament_cmake_catch2:type: giturl: https://github.com/open-rmf/ament_cmake_catch2.gitversion: mainrmf/rmf_visualization:type: giturl: https://github.com/open-rmf/rmf_visualization.gitversion: mainrmf/rmf_visualization_msgs:type: giturl: https://github.com/open-rmf/rmf_visualization_msgs.gitversion: mainrmf/rmf_building_map_msgs:type: giturl: https://github.com/open-rmf/rmf_building_map_msgs.gitversion: mainrmf/rmf_simulation:type: giturl: https://github.com/open-rmf/rmf_simulation.gitversion: mainrmf/rmf_traffic_editor:type: giturl: https://github.com/open-rmf/rmf_traffic_editor.gitversion: maindemonstrations/rmf_demos:type: giturl: https://github.com/open-rmf/rmf_demos.gitversion: mainthirdparty/menge_vendor:type: giturl: https://github.com/open-rmf/menge_vendor.gitversion: masterthirdparty/nlohmann_json_schema_validator_vendor:type: giturl: https://github.com/open-rmf/nlohmann_json_schema_validator_vendor.gitversion: mainthirdparty/pybind11_json_vendor:type: giturl: https://github.com/open-rmf/pybind11_json_vendor.gitversion: mainthirdparty/ros_ign:type: giturl: https://github.com/ignitionrobotics/ros_ign.gitversion: galactic
从0到ros2玩rmf相关推荐
- ros2上怎样才能玩rmf?
Ros2关于如何编译rmf----已成功 环境 1.设置gazebo库 2.从源码开始构建 3.下载源码(这一部分极其重要!) 编译 成功! 环境 日期:2022/4/22 ubuntu版本:20.4 ...
- jQuer or js 插件aptana studio 3.4.0)教你玩转eclipse配置(全世
2019独角兽企业重金招聘Python工程师标准>>> 这个插件适合纯前台开发.随着社会分工越来越细,现在很多大中型公司都将前后台分工明细!这是背景,可以割掉! 1.首先aptana ...
- 畅玩4c刷android 9.0,华为畅玩4C电信版 CyanogenMod 13.0_Android_6.0.1 【HRT_chiwahfj】
本帖最后由 chiwah渔夫 于 2016-9-9 22:31 编辑 [基本信息] ROM名称:华为畅玩4C电信版 CyanogenMod 13.0_Android_6.0.1 ROM大小:617M ...
- 蔡康永:我要的三国就是威力无双。0氪玩家玩了两个礼拜后
我玩王者荣耀好几年了,每天都要撸几把,风雨无阻,不知道为什么,最近突然就不想玩了,想找点其他游戏玩玩. 想起了多年前玩街机游戏时候的青骢岁月,那时候要是能捡到一个游戏币比捡到钱还高兴.当时印象最深刻的 ...
- 从0到1玩转戴尔G7 7588 macOS Win 双系统
电脑配置 规格 详细信息 电脑型号 戴尔 G7 7588 笔记本电脑 操作系统 Windows 10 专业版 64位 处理器 英特尔 Core i7-8750H @ 2.20GHz 六核 主板 戴尔 ...
- 荣耀4c电信Android6.0,华为畅玩4C电信版 CyanogenMod 13.0_Android_6.0.1 【HRT_chiwahfj】
本帖最后由 chiwah渔夫 于 2016-9-9 22:31 编辑 [基本信息] ROM名称:华为畅玩4C电信版 CyanogenMod 13.0_Android_6.0.1 ROM大小:617M ...
- “协作3.0”不是玩概念,科天云让企业应用场景更多彩
企业服务是个大市场,许多企业都想在ToB市场建功立业.进入这一领域的企业,不管是传统企业服务巨头,还是行业的创新企业,或者是在ToC市场取得成功的BATJ,对企业服务市场需求及其变化的把握都有一个过程 ...
- 普华集团翟山鹰:从0到1玩转自媒体“小思路“ 轻松赚大钱
有人说,2020年,是内容创作者的沉淀与深耕之年. 当互联网文明发展到了一定程度,所有产业都在颠覆中前行.关于自媒体行业未来的新一轮号角已经吹响,各大平台百花齐放,优质内容争夺战愈演愈烈,展现形式也在 ...
- 荣耀畅玩5a android5.0,荣耀畅玩6A和5A有什么区别 荣耀畅玩6A对比畅玩5A (全文)
5月23日下午,荣耀召开新品发布会,发布了"青春4件套"四款新品,其中荣耀畅玩6A手机备受关注.荣耀畅玩6A属于去年6月12日发布的荣耀畅玩5A的下一代产品,而此前畅玩5A如今销量 ...
最新文章
- Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
- tensorflow1
- 2022年全国硕士研究生招生国家线公布
- SAX解析XML 详解
- C编程,随机数,排序
- 知识图谱资源-NLP
- 【机器视觉】 dev_set_lut算子
- 非线性回归模型(part1)--神经网络
- 前端学习(2767):下拉刷新的学习
- python3.5.2安装pygame_【闲来无事,py写game】Mac-Python3.5安装pygame 1.9.2 小计
- java公钥加密私钥解密过程_GPG加密解密过程
- 拦截导弹(信息学奥赛一本通-T1289)
- 华为鸿蒙ipc时延,虚搜
- pc变手机端html,让移动端的事件变为PC端的事件
- 架构师的第一步:学习两种抽象视角(Abstraction View)
- python - 多线程、装饰器
- 面试:谈谈你对jQuery的理解
- 淘客发单机器人wztools_在淘客的迷茫中,拼多多给了我一丝光明
- android N 移除 webview
- 2014年7月份第2周51Aspx源码发布详情
热门文章
- unity转微信小程序小游戏
- 几种方法判断平面点在三角形内
- 怎么删除word中的空白页?
- 读hzk32_点阵字库HZK12 HZK16 HZK24 ASC12 ASC16 简介 及 使用方法[附源码]
- crypto加密解密
- LED背光学习_标准和白光LED的基础知识与驱动
- 菜鸡小南橙的成长之路————bugkuCTF解题记录(一)
- 配置和使用Nexus私有仓库
- mscbsc移动通信论坛_中国移动5G资费被确认,流量低至1毛/G, 联通电信又被动,网友:良心价...
- Altium Designer快捷键布线无法实现网络线自动编号