首页 > 代码库 > 【ros】Create a ROS package:package dependencies报错

【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成功

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