1 准备工作
全部是按照官方操作的:http://wiki.ros.org/groovy/Installation/Source
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.list
按照里面步骤更新源,目的是能够安装ROS的工具,安装以下依赖库
-
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
利用easy_install安装pip:(http://www.ros.org/wiki/ROS/Installation/EasyInstallConfig)
sudo easy_install pip
然后安装以下的包:(http://www.ros.org/wiki/fuerte/Installation/Ubuntu/Source)
sudo pip install -U rosdep
sudo pip install -U rosinstall
sudo pip install -U rospkg
安装python-wstool:
pip install -U wstool
redep初始化:
sudo rosdep init rosdep update
2 下载源码
mkdir ~/ros_catkin_ws cd ~/ros_catkin_ws
时间: 2024-10-24 21:25:39