当前位置: 首页 > web >正文

【ROS2】虚拟机使用fishros脚本一键安装humble

视频讲解:1.2.4 在Ubuntu中安装ROS2:https://www.bilibili.com/video/BV1Jz421B7Ey
一键安装包的源码: https://github.com/fishros/install
其他资料:ROS2机器人开发:从入门到实践

虚拟机安装参考

https://book.guyuehome.com/ROS2在windows虚拟机安装ubuntu

下载自动安装脚本

打开命令端 ,输入

sudo apt update 

下载安装脚本并安装

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

脚本内容,如果下载不下来,可以保存为任意文件名,直接执行

mkdir -p /tmp/fishinstall/tools/translation/assets
wget http://mirror.fishros.com/install/install.py -O /tmp/fishinstall/install.py 2>>/dev/null 
source /etc/profile
if [ $UID -eq 0 ];thenapt-get install sudo 
fi
sudo apt install python3-distro python3-yaml -y
sudo python3 /tmp/fishinstall/install.py
sudo rm -rf /tmp/fishinstall/if [ -f fishros ]; thensudo rm fishros
fi# 初始假设默认是 Bash
shell_name='bash'
if shopt -u lastpipe 2> /dev/null; then# 当前 shell 是 Bash:
else# 当前 shell 是 Zsh 或其他 shellif test -n "$ZSH_VERSION"; thenshell_name='zsh'else# 当前使用的 shell 不是 Bash 或 Zshshell_name=''fi
fi# 根据 shell 名称加载相应的配置文件
if [ "$shell_name" = "bash" ]; thenif [ -f ~/.bashrc ]; thensource ~/.bashrcfi
elif [ "$shell_name" = "zsh" ]; thenif [ -f ~/.zshrc ]; thensource ~/.zshrcfi
fi

输入数字安装(根据提示安装)

这个工具可以安装很多包,本次我们是选1, ROS

ROS版本选择,选humble (ubuntu22.04)

根据系统选择
在这里插入图片描述

桌面端,是指ubuntu图像界面的

在这里插入图片描述

安装好测试命令

ros2

查看安装位置

zengxingyu@zengxingyu-virtual-machine:~$ whereis ros2
ros2: /opt/ros/humble/bin/ros2

在这里插入图片描述

运行内置小海龟程序

ros2 run turtlesim turtlesim_node

附录

ROS2相关文章

ROS的安装:【ROS2】机器人操作系统安装到Ubuntu22.04简介(手动)

http://www.xdnf.cn/news/7252.html

相关文章:

  • 我的创作纪念日——512天
  • 学习笔记:hspice仿真Verilog-a
  • ReentrantLock、ReentrantReadWriteLock、StampedLock讲解
  • ET Attribute
  • 【Python 算法零基础 4.排序 ① 选择排序】
  • 深度剖析:YOLOv8融入UNetv2 SDI模块的性能提升之旅
  • 游戏服务器之聊天频道设计
  • 双紫擒龙紫紫红指标源码学习,2025升级版紫紫红指标公式-重点技术
  • transformer project tutorial
  • volatile
  • Python实例题:Flask开发轻博客
  • mybatis中的resultMap的association及collectio的使用
  • 【动态规划】状压dp
  • Mlp-Mixer-BiGRU故障诊断的python代码合集
  • LLMs:《POE报告:2025年春季人工智能模型使用趋势》解读
  • 实习记录小程序|基于SSM+Vue的实习记录小程序设计与实现(源码+数据库+文档)
  • 涉密载体管控系统|DW-S402系统组成
  • 【LLM MoE】论文分享No.11:DeepSeekMoE
  • 前缀和——中心数组下标
  • Leetcode 3552. Grid Teleportation Traversal
  • 【开源分享】健康饮食管理系统(双端+论文)
  • 2- PyTorch
  • 如何使用 Apple 提供的 benchmark 工具
  • 深入解析Spring Boot与Spring Cloud在微服务架构中的实践
  • 卷积神经网络进阶:转置卷积与棋盘效应详解
  • 常见的请求头(Request Header)参数
  • 学习黑客Active Directory 入门指南(四)
  • 代码随想录哈希表part02(二)
  • 学习黑客Active Directory 入门指南(一)
  • 【iOS(swift)笔记-9】WKWebView无法访问网络