conda安装ros1或者ros2

本文详细介绍了如何使用Mamba这个高性能包管理工具在conda环境中安装ROS1(如Noetic)和ROS2(如Humble),创建虚拟环境,配置下载通道,安装必要的编译工具,并测试安装是否成功,最后提供Mamba更新操作指南。
摘要由CSDN通过智能技术生成

基于conda安装ros版本:

1. 基于高性能的mamba包工具进行管理:

conda install mamba -c conda-forge

2. 创建虚拟环境,以及设置下载ros的通道号

mamba create -n ros
mamba activate ros

# this adds the conda-forge channel to the new created environment configuration 
conda config --env --add channels conda-forge
# and the robostack channel
conda config --env --add channels robostack-staging
# remove the defaults channel just in case, this might return an error if it is not in the list which is ok
conda config --env --remove channels defaults

3. 安装ros1或者ros2

# Install ros-noetic into the environment (ROS1)
mamba install ros-noetic-desktop

# Install ros-humble into the environment (ROS2)
mamba install ros-humble-desktop

4. 重新激活ros虚拟环境

mamba deactivate
mamba activate ros

5. 安装编译工具:

mamba install compilers cmake pkg-config make ninja colcon-common-extensions catkin_tools rosdep

6. 测试安装成功与否:

ros1:

mamba activate ros
roscore &
rviz

ros2:

mamba activate ros
rviz2

mamba 更新操作:

mamba update --all

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值