Error: the rosdep view is empty: call ‘sudo rosdep init’ and ‘rosdep update’ 学习 ROS 时,运行 rospack depends1 XXX 报错的解决办法
学习 ros 官网的 wiki 时, 使用 rospack depends1 XXX
报错:
Error: the rosdep view is empty: call ‘sudo rosdep init’ and ‘rosdep update’
我使用的是树莓派的 ubuntu 20.04 系统, 安装的 ROS 版本为 ROS Noetic Ninjemys
, 以下为报错的解决办法.
sudo apt install python3-rosdep2 # 安装rosdep
sudo rm -rf $HOME/.ros/rosdep && sudo rm -rf /etc/.ros/rosdep # 删除 ros