别人发給一个我压缩包,我利用,
cd catkin_ws/src
catkin_create_pkg minisnap roscpp rospy std_msgs
整了个软件包,选择性替换了原本的src,然后进行编译,编译通过,
当我输入roslaunch minisnap real.launch
出现
Resource not found: min_snap
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/home/lin/catkin_ws/src
ROS path [2]=/opt/ros/noetic/share
ROS path [3]=/home/lin/PX4-Autopilot
ROS path [4]=/home/lin/PX4-Autopilot/Tools/sitl_gazebo
The traceback for the exception was written to the log file
当我i输入rospack depends minisnap,它给我显示[rospack] Error: the rosdep view is empty: call 'sudo rosdep init' and 'rosdep update'
接下来我跟着提示输入sudo rosdep init,
他给我显示
ERROR: cannot download default sources list from:
https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
<urlopen error <urlopen error [Errno -3] Temporary failure in name resolution> (https://mirrors.tuna.tsinghua.edu.cn/github-raw/ros/rosdistro/master/rosdep/sources.list.d/20-default.list)>
我输入rospack find minisnap,有给我返回路径
该如何解决
Resource not found: min_snap
ROS path [0]=/opt/ros/noetic/share/ros
ROS path [1]=/home/lin/catkin_ws/src
ROS path [2]=/opt/ros/noetic/share
ROS path [3]=/home/lin/PX4-Autopilot
ROS path [4]=/home/lin/PX4-Autopilot/Tools/sitl_gazebo
The traceback for the exception was written to the log file