ubuntu14.04安装ros-indigo

1.终端命令(不解释,指令含义没啥大用)

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install ros-indigo-desktop-full
sudo rosdep init
rosdep update
sudo apt-get install python-rosinstall
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc
roscore

如果最后一条命令正确执行,则表示安装成功。

2.可能出现的问题

@H_404_41@1.sudo rosdep init提示


ERROR: cannot download default sources list from:
https://raw.github.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.”
方法1:sudo -E rosdep init
方法2:在/etc/environment中加入(注意改成自己的信息)

http_proxy=http://[user:password@]proxy_server:port/
https_proxy=https://[user:password@]proxy_server:port/

方法3:在home下新建20-default.list文件,将写入下列内容并保存。

# os-specific listings first
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx

# generic
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte

# newer distributions (Groovy,Hydro,...) must not be listed anymore,they are being fetched from the rosdistro index.yaml instead

然后

cd /etc
sudo mkdir -p ros/rosdep/sources.list.d
sudo cp ~/20-default.list /etc/ros/rosdep/sources.list.d

再执行rosdep update

2.roscore提示Unable to contact my own server at …

  • 1.首先保证自己的主机名不是数字,即打开终端后显示的aiiage@ausu中ausu位置的内容
  • 2.将~/.bashrc中的
export ROS_MASTER_URI=http://ip:11311 
export ROS_HOSTNAME=ip

改成

export ROS_MASTER_URI=http://laptop_name:11311
export ROS_HOSTNAME=laptop_name

相关文章

1.安装过程出现0x00000000指令引用的0x00000000内存该内存不能为written 如果你安装的是inux系统 需要在...
写在全面:如果根据以下教程涉及到只读文件需要更改文件权限才能需修改文件内容,参考我的另一篇博客:...
写在前面:以下步骤中需要在终端输入命令,电脑端查看博客的朋友可以直接复制粘贴到终端,手机端查看的...
ubuntu16.04和18.04更换国内源 写在前面:安装好ubuntu双系统后,默认的软件更新源是国外的,在国内使用...
ubuntu双系统启动时卡死解决办法(在ubuntu16.04和18.04测试无误) 问题描述: 在安装完ubuntu双系统后...
又来造轮子了。。。。。。。。。。。。。。。。 今天使用w3af向文件中写入的时候,发现没有write权限,...