【ROS2大白话】一、ROS2 humble及cartorgrapher安装

系列文章目录

【ROS2大白话】一、ROS2 humble及cartorgrapher安装
【ROS2大白话】二、turtlebot3安装
【ROS2大白话】三、给turtlebot3安装realsense深度相机
【ROS2大白话】四、ROS2非常简单的传参方式



一、ROS2的humble安装

1、系统配置ubuntu 22.04

  • 假如长期使用ros2,建议是ubuntu系统或者双系统下安装操作,不要在虚拟机中进行。
  • ubuntu系统能用最新的大系统就用最新的,比如22.04

2、humble安装

  • ros版本选择humble版本,比较稳定,各公司用的多一点。

2.1、一键安装

  • 利用鱼香ROS的安装指令一键安装即可
wget http://fishros.com/install -O fishros && . fishros

(1) 选择===> 一键安装:ROS(支持ROS和ROS2,树莓派Jetson)
(2) 选择===> 更换系统源再继续安装
(3) 选择===> humble系统
(4) 选择===> humble系统桌面版

接着等待安装即可

二、ROS2的rosdepc安装

鱼香ros中可以安装另外版本的rosdepc

wget http://fishros.com/install -O fishros && . fishros

选择3,一键配置rosdepc。安装完成后运行rosdepc update

三、ROS2的cartographer安装

cartographer的安装方式有两种:apt安装和源码安装。推荐源码安装,便于查看和修改源码。

1、源码安装

  • 创建工作空间
mkdir -p carto_ws/src && cd carto_ws/src
  • 克隆代码
git clone https://ghproxy.com/https://github.com/ros2/cartographer.git -b ros2
git clone https://ghproxy.com/https://github.com/ros2/cartographer_ros.git -b ros2
  • 安装依赖
cd ~/carto_ws
rosdepc install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y

  • 编译
colcon build --packages-up-to cartographer_ros

  • 验证是否成功
source install/setup.bash
ros2 pkg list | grep cartographer

显示内容如下

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

押波张飞

觉得有用,是我最大的动力

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

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

打赏作者

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

抵扣说明:

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

余额充值