ROS ZYNQ移植

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


3 我晕 搞错了

  以上的步骤纯粹是从源代码安装。每必要啊  。能够从官方提供的方法 http://wiki.ros.org/groovy/Installation/UbuntuARM   ,直接获取编译后的文件就能够用了。何必自己去编译呢,劳民伤財。

本来LINUX基础就不是非常好,还这么脑残的去自己编译。傻叉啊!


Configure your Ubuntu repositories
配置你的UBUNTU
http://wiki.ros.org/groovy/Installation/UbuntuARM
Setup your sources.list

  • Ubuntu 11.10 (Oneiric armel)

    •  

    Ubuntu 12.04 (Precise armel)

    •  

    Ubuntu 12.04 (Precise armhf)

    • 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)

    •  


Set up your keys
	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 -

 
   
 
   
Installation

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
Initialize rosdep

sudo apt-get install python-rosdep
sudo rosdep init
rosdep update

Environment setup
 
   

echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc
source ~/.bashrc

source /opt/ros/groovy/setup.bash

Getting rosinstall

sudo apt-get install python-rosinstall

開始官方的0基础教程




參考:

http://wiki.ros.org/groovy/Installation/UbuntuARM                            --  很好  
http://blog.csdn.net/hcx25909/article/details/8539587
http://www.eefocus.com/hcx196/blog/
http://www.eefocus.com/hcx196/blog/13-01/291235_cea1f.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值