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

Ubuntu24.04一键安装ROS2

参考

https://zhuanlan.zhihu.com/p/30984497406

使用命令进行一键安装,省去了配置环境的麻烦

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

主要命令就是这个,然后一步一步进行安装。

然后参考这个博客,进行ROS2的测试

Ubuntu24.04安装ROS2 Jazzy-CSDN博客

从这个地方往下走进行测试

运行这个命令,一切正常

#打开一个新终端,输入命令,发布话题source /opt/ros/jazzy/setup.bash
ros2 run demo_nodes_cpp talker#打开另一个新终端,接收话题source /opt/ros/jazzy/setup.bash
ros2 run demo_nodes_py listener

在进行小海龟测试,运行下面这个命令的时候,出了问题

ros2 run turtlesim turtlesim_node
ros2 run turtlesim turtle_teleop_key

 ros2 run turtlesim turtlesim_node
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.[ros2run]: Aborted

猜测是因为没有安装图形化程序,所以导致这个小海龟程序不能运行的问题

http://www.dtcms.com/a/252033.html

相关文章:

  • nrf52811墨水屏edp_service.c文件学习
  • PID 控制算法 | 参数整定 | 方法 / 仿真 / 应用案例
  • 先理解软件工程,再谈AI辅助研发
  • 访问网页的全过程
  • 【计网】导航
  • 常见内核TCP参数描述与配置
  • libuv 框架
  • 介质访问控制——随机访问控制
  • 大模型笔记5:Agent
  • 企业信息技术外包管理制度:如何安全高效管理IT外包服务
  • NodeJS的yarn和npm作用和区别,为什么建议用yarn
  • 分类预测 | Matlab基于AOA-VMD-GRU故障诊断分类预测
  • 3.创建数据库
  • 深度学习---ONNX(Open Neural Network Exchange)
  • 路由的相关知识
  • Python•元组集合字符串
  • 山东大学项目实训-创新实训-法律文书专家系统-项目报告(七)
  • C# 枚举(位标志)
  • GO语言---短变量声明
  • C#最佳实践:为何应减少嵌套
  • Adguard安卓版:全方位广告拦截与隐私保护
  • vue3 +spring boot文件上传
  • Compose Canvas 中添加手势控制
  • ​​信息系统项目管理师-项目范围管理 知识点总结与例题分析​​
  • Sa-Token全面深入学习指南
  • 敏捷开发的特点
  • 【 C++ 模板中 `template<typename T>` 与 `template<class T>` 的深度解析】
  • 基于STM32的超声波模拟雷达设计
  • SpringBoot 全面深入学习指南
  • 影视剧学经典系列-梁祝-《闲情赋》