【ros】Create a ROS package:package dependencies报错

$rospack depends1 beginner_tutorials

报错:Erros:could notn call python function 'rosdep2.rospack.init_rospack_interface'

有人说要rosdep update一下,

$rosdep update

报错:Permission denied : '/home/xy/.ros/rosdep/sources.cache/index'

想起来之前说什么东西没权限,然后chmod乱改一气,可能那时候改错了。

看到有提示:try running 'sudo rosdep fixe-permissions'

照做,成功。

可以rosdep update了,

继而rospack depends1 beginner_tutorials成功

转载于:https://www.cnblogs.com/xy123001/p/5994116.html

你可能感兴趣的:(【ros】Create a ROS package:package dependencies报错)