基于ubuntu1604的ROS安装( 二 )


/usr/lib/python2.7/dist-packages/rosdistro/__init__.py/usr/lib/python2.7/dist-packages/rosdep2/rep3.py/usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py/usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
需要修改的地方都包含一个我们无法访问的网络地址,直接搜索这个字符串就能找到修改的地方,改后内容(对应上述文件顺序):
DEFAULT_INDEX_URL = 'file:///home/lxh/rosdistro/index-v4.yaml'REP3_TARGETS_URL = 'file:///home/lxh/rosdistro/releases/targets.yaml'FUERTE_GBPDISTRO_URL = 'file:///home/lxh/rosdistro/releases/fuerte.yaml'DEFAULT_SOURCES_LIST_URL = 'file:///home/lxh/rosdistro/rosdep/sources.list.d/20-default.list'

基于ubuntu1604的ROS安装

文章插图
【基于ubuntu1604的ROS安装】此时再执行
sudo rosdep initrosdep update
畅通无阻 。
三、
没什么难度了
##配置环境变量echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrcsource ~/.bashrc##安装sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
四、测试(小海龟)
要打开窗口界面的,所以需要在桌面打开终端执行,需要三个终端
##相当于服务器,给终端和控制端传递消息roscore##小海龟终端rosrun turtlesim turtlesim_node##小海龟控制端,按下方向键控制小海龟rosrun turtlesim turtle_teleop_key
看到图像界面并且能进行控制说明测试通过,安装完成 。
博文参考1
博文参考2