安装iai-kinect2出现的问题
输入
rosdep install -r --from-paths .
(让我更新)
sudo rosdep init
rosdep update
ERROR: your rosdep installation has not been initialized yet. Please run:
第一个操作
#打开hosts文件
sudo gedit /etc/hosts
#在文件末尾添加
151.101.84.133 raw.githubusercontent.com
#保存后退出再尝试,没有转行直接在后面粘贴
sudo rosdep init
就不出来了。
第二个操作
输入rosdep update 会报以下错
reading in sources list data from /etc/ros/rosdep/sources.list.d
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml]:
<urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml)
ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml]:
Failed to download target platform data for gbpdistro:
<urlopen error [Errno 101] Network is unreachable>
Query rosdistro index https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml
ERROR: error loading sources list:
<urlopen error <urlopen error [Errno 101] Network is unreachable> (https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml)>
试了好几个方法,最后跟着这个做解决了
https://blog.csdn.net/weixin_53660567/article/details/120607176?spm=1001.2014.3001.5502
注意下:我按这帖子里顺序尝试 到
sudo apt-get install python3-pip
指令才有用,紧接着回头使用了
sudo pip3 install rosdepc
然后再试了
sudo rosdepc init
最后rosdepc update
就解决了