roscore无法启动,bin文件缺失roscore导致

roscore

WARNING:root:could not open file '/etc/apt/sources.list'

Command 'roscore' not found, but can be installed with:

sudo apt install python3-roslaunch

启动roscore发生以上错误,先一个一个来解决:

WARNING:root:could not open file ‘/etc/apt/sources.list’ 这个应该是sources.list权限不够,

sudo chmod 777 /etc/apt/sources.list 然后运行roscore试一下:

Command 'roscore' not found, but can be installed with:

sudo apt install python3-roslaunch

果然第一个是权限的问题,但是依旧没有解决 Command ‘roscore’ not found,
然后参考如何解决ROS "roscore command not found"的回答,到/opt/ros/noetic/bin(/bin里存放二进制的可执行文件)果然没有roscore,这就很奇怪,昨天还能启动roscore,今天就没有了???

想起之前看到的一篇博文,在终端中再次下载一遍ros的桌面版来补全缺失的文件

sudo apt-get install ros-noetic-desktop

问题解决!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值