[rospack] Error: the rosdep view is empty: call ‘sudo rosdep init‘ and ‘rosd

本文系统配置ubuntu20.04+ros1,是初学者按照ros官网初级教程学习记录,仅作个人学习记录,如有问题可联系本文作者。

在进行ros学习过程中,遇到错误:

[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosd

在各方搜索过后,查看ros论坛解决该错误【该错误的论坛链接如下】[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' - ROS Answers: Open Source Q&A ForumHi all. I installed ROS (melodic)/Gazebo using the instructions and a shell file found here. I am new to this field, so I was going through http://wiki.ros.org/ROS/Tutorials/, and in section 5.1 of the Creating a Package page, there was a step that told me to run $ rospack depends1 beginner_tutorials. When I did that, I got the error from the title: [rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update' I followed what it said and tried sudo rosdep init and I got sudo: rosdep: command not found and when I did rosdep update I got Command 'rosdep' not found, but can be installed with: sudo apt install python-rosdep2. Running the install command overwrites packages installed by the shell file, and that causes a lot more errors when trying to build the file, so I overwrote those changes by installing from the shell file again. My question is, how do I fix this error without installing python-rosdep2, because that is obviously causing problems. I'm pretty new to this field, so I don't know if this is sufficient information, but please let me know if you can help me out.https://answers.ros.org/question/353570/rospack-error-the-rosdep-view-is-empty-call-sudo-rosdep-init-and-rosdep-update/以下是根据论坛参考自己解决错误的过程:

第一步首先是:

$ rosdep update

 

第二步:

$ sudo apt install python3-rosdep2

 

第三步:

$ rosdep update

第四步:

$ sudo apt install ros-noetic-desktop-full

最后重新输入指令如下:

$ rospack depends1 beginner_tutorials 

 错误解决。

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值