apt-get install python-rosdep python-rosinstall-generator python-wstool build-essential出現錯誤,找不到源 ,那個就要進入提示的頁面: If you have trouble installing the packages in the command above, make sure you have added the packages.ros.org debian repository to your apt source lists as described starting here:
groovy/Installation/Ubuntu#groovy.2BAC8-Installation.2BAC8-Sources.Setup_your_sources.listhtml
依照裏面步驟更新源,目的是能夠安裝ROS的工具。安裝下面依賴庫python
sudo apt-get install build-essential python-yaml cmake subversion wget python-setuptools mercurial git-core python-rosdep python-rospkg python-rosinstall
sudo apt-get install python-yaml libapr1-dev libaprutil1-dev libbz2-dev python-dev python-empy python-nose libgtest-dev python-paramiko libboost-all-dev liblog4cxx10-dev pkg-config
sudo apt-get install python-wxgtk2.8 python-gtk2 python-matplotlib libwxgtk2.8-dev python-imaging libqt4-dev graphviz qt4-qmake python-numpy ros-fuerte-swig-wx
wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py
sudo easy_install pip
sudo pip install -U rosdep
sudo pip install -U rosinstall
sudo pip install -U rospkg
pip install -U wstool
sudo rosdep init rosdep update
mkdir ~/ros_catkin_ws cd ~/ros_catkin_ws
原本LINUX基礎就不是很是好,還這麼腦殘的去本身編譯。傻叉啊!ui
Ubuntu 11.10 (Oneiric armel) spa
sudo sh -c 'echo "deb http://packages.ros.org/ahendrix-mirror/ubuntu oneiric main" > /etc/apt/sources.list.d/ros-latest.list'
Ubuntu 12.04 (Precise armel) .net
sudo sh -c 'echo "deb http://packages.ros.org/ahendrix-mirror/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
Ubuntu 12.04 (Precise armhf) htm
sudo sh -c 'echo "deb http://packages.namniart.com/repos/ros precise main" > /etc/apt/sources.list.d/ros-latest.list'
Ubuntu 12.10 (Quantal armhf)
sudo sh -c 'echo "deb http://packages.namniart.com/repos/ros quantal main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://packages.ros.org/ros.key -O - | sudo apt-key add - wget http://packages.namniart.com/repos/namniart.key -O - | sudo apt-key add -
First, make sure your Debian package index is up-to-date:
sudo apt-get update
There are many different libraries and tools in ROS. Most of the default configurations do not yet compile fully on ARM. You can also install ROS packages individually.
ROS-Base: (Bare Bones) ROS package, build, and communication libraries. No GUI tools.
sudo apt-get install ros-groovy-ros-base
Individual Package: You can install a specific ROS package (replace underscores with dashes of the package name):
sudo apt-get install ros-groovy-PACKAGE
e.g.
sudo apt-get install ros-groovy-ros
To find available packages, use:
apt-cache search ros-groovy
這裏我選擇在zynq上安裝的是 ROS-Base包,不含GUI
sudo apt-get install python-rosdep
sudo rosdep init
rosdep update
echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc
source ~/.bashrc
source /opt/ros/groovy/setup.bash
sudo apt-get install python-rosinstall