ros 源码安装

版本lunar, 系统版本debian 9.8

参考: http://wiki.ros.org/lunar/Installation/Source


1. Installing bootstrap dependencies

$ sudo apt-get install python-rosdep python-rosinstall-generator python-wstool python-rosinstall build-essential

2. Initializing rosdep

$ sudo rosdep init
$ rosdep update
 $ mkdir ~/ros_catkin_ws
$ cd ~/ros_catkin_ws

 2.1 Desktop-Full Install: ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception

    $ rosinstall_generator desktop_full --rosdistro lunar --deps --tar > lunar-desktop-full.rosinstall
    $ wstool init -j8 src lunar-desktop-full.rosinstall

 
2.2 Desktop Install (recommended): ROS, rqt, rviz, and robot-generic libraries

    $ rosinstall_generator desktop --rosdistro lunar --deps --tar > lunar-desktop.rosinstall
    $ wstool init -j8 src lunar-desktop.rosinsta

 2.3 ROS-Comm: (Bare Bones) ROS package, build, and communication libraries. No GUI tools.

    $ rosinstall_generator ros_comm --rosdistro lunar --deps --tar > lunar-ros_comm.rosinstall
    $ wstool init -j8 src lunar-ros_comm.rosinstall

PS: If wstool init fails or is interrupted, you can resume the download by running:
 

3. Resolving Dependencies

$ rosdep install --from-paths src --ignore-src --rosdistro lunar -y

 
4. 编译 Building the catkin Workspace

$ ./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release

 
默认安装在:
~/ros_catkin_ws/install_isolated
如果想改变安装路径:
 --install-space /opt/ros/lunar

5.

$ source ~/ros_catkin_ws/install_isolated/setup.bash

 

转载于:https://www.cnblogs.com/lvchaoshun/p/11358310.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值