[yotroy.cool]ROS1 安装遇到的问题 404 Not Found & TURTLEBOT3_MODEL

1 篇文章 0 订阅
1 篇文章 0 订阅

个人博客https://www.yotroy.cool/,欢迎关注我哦~

============================================================

环境

Windows 11安装的wsl-ubuntu

Error: jammy Release 404 Not Found

Err:10 http://packages.ros.org/ros/ubuntu jammy Release 404 Not Found [IP: 140.211.166.134 80] Reading package lists... Done 
W: https://dl.yarnpkg.com/debian/dists/stable/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details. 
E: The repository 'http://packages.ros.org/ros/ubuntu jammy Release' does not have a Release file. 
N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

解决方案

请确认ros版本和ubuntu版本是否匹配,我的问题在于ubuntu22.04只能安装ros2无法兼容ros1,因为ros1最高只支持到ubuntu20.04。于是在通过wsl下载了ubuntu20.04,步骤如下。

推荐powershell工具

蛮推荐微软官方的这个PowerShell美区链接

powershell_mstore

powershell_show

wsl安装ubuntu20.04

windows打开powershell,现在要检索可以直接安装的系统,输入:

wsl --list --online

wsllist

安装20.04版本ubuntu请输入:

wsl --install -d Ubuntu-20.04

然后可以跟随ros1官方教程安装了。中文官方教程

vscode启动wsl

若存在多个wsl安装的系统,在vscode中如何链接?
先安装ssh拓展
vscode_ssh

如图操作,然后选择需要的20.04的ubuntu系统
ros_install_vscode1

即可

Error: ‘TURTLEBOT3_MODEL’ is not set

安装完成后用roslaunch命令尝试启动turtlebot3 package启动报错如下:

$ roslaunch turtlebot3_gazebo turtlebot3_world.launch

RLException: Invalid <arg> tag: environment variable 'TURTLEBOT3_MODEL' is not set. 

Arg xml is <arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
The traceback for the exception was written to the log file

解决方案

我的解决办法是设置成waffle,可按需修改

export TURTLEBOT3_MODEL=waffle

再次尝试
vscode_roslaunch

============================================================

未经作者授权,禁止转载;如需转载,请标明出处。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值