Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9412703
  • 博文数量: 1748
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 20070
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1748)

文章存档

2024年(24)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: 其他平台

2020-07-22 16:46:52

组件化的工作开始, 在底盘组件化过程中, 目前有到新的ITX板子. 现在部署 ROS kinetic环境.

  • 安装 ubuntu 16.04
  • 修改 /etc/sudoers.  修改 %sudo ALL=(ALL:ALL) NOPASSWD:ALL  这样有sudo权限的用户无需输入密码.
  • 增加网络支持. 修改源为 tsinghua 的源. sudo apt install openssh-server samba. 添加 samba的共享目录和用户.
  • 取出一些无用的包  sudo apt remove --purge libreoffice-* totem* rhythmbox* thunderbird* transmission-* eog shotwell evince* simple-scan aisleriot gnome-mines gnome-sudoku gnome-screensaver gnome-screenshot gnome-orca gnome-mahjongg gnome-font-viewer gnome-calendar gnome-calculator gnome-system-log gnome-user-guide firefox* ufw
  • 添加网络桌面共享 
    sudo apt install dconf-editor xvfb x11vnc vim bash-completion yasm 
    打开 <桌面共享>程序, 要求使用密码确认.
    dconf-editor  设置 org -> gnome -> desktop -> remote-access 取消勾选requlre-encryption
    命令行执行 gsettings set org.gnome.Vino require-encryption false ; gsettings set org.gnome.Vino use-upnp true
    添加 /usr/local/bin/fakevncscreen 

    点击(此处)折叠或打开

    1. $ cat fakevncscreen
    2. #!/bin/bash

    3. while [ 1 ]; do
    4. xvfb_cnt=`pidof Xvfb`
    5. if [[ $xvfb_cnt -eq 0 ]]; then
    6.   Xvfb :95 -screen 0 1280x1024x16 &
    7.   sleep 2
    8. fi

    9. x11_cnt=`pidof x11vnc`
    10. if [[ $x11_cnt -eq 0 ]]; then
    11.   x11vnc -ncache 10 -listen 0.0.0.0 -rfbport 9595 -noipv6 -passwd wanglong -display :95 & #每次vncview退出后, 此程序也会退出.
    12. else
    13.   sleep 3
    14. fi

    15. done

  • 从源送货机器人上拷贝工程到本地

    点击(此处)折叠或打开

    1. //需要拷贝的内容 
    2. sudo scp -P 22 -r ray@192.168.43.16:/etc/ROS_ENV /etc/
    3. sudo scp -P 22 -r ray@192.168.43.16:/usr/local/bin/fakevncscreen /usr/local/bin/
    4. scp -P 22 -r ray@192.168.43.16:~/.bashrc ~

    5. scp -P 22 -r ray@192.168.43.16:/work/CuteRobot/{ArTag,doc,dpkg_list_ITX,dpkg_list_nuc} /work/CuteRobot/
    6. scp -P 22 -r ray@192.168.43.16:/work/CuteRobot/Waffle/{ClearSpecialPkg.sh,SlamMap,src,Voices} /work/CuteRobot/Waffle/
    7. scp -P 22 -r ray@192.168.43.16:/work/itx_apps/* /work/itx_apps/
    8. scp -P 22 -r ray@192.168.43.16:/work/nonRosStdPkgs/* /work/nonRosStdPkgs/
    9. scp -P 22 -r ray@192.168.43.16:/work/reference/* /work/reference/
    10. scp -P 22 -r ray@192.168.43.16:/work/Waffle/src /work/Waffle_Backup/

  • 部署 ROS_Kinetic.

    点击(此处)折叠或打开

    1. http://wiki.ros.org/cn/kinetic/Installation/Ubuntu

    2. sudo sh -c '. /etc/lsb-release && echo "deb `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'

    3. sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
    4. 或者
    5. sudo apt-key adv --keyserver 'hkp://pgp.mit.edu:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
    6. 或者
    7. curl -sSL '' | sudo apt-key add -

    点击(此处)折叠或打开

    1. sudo apt-get update
    2. sudo apt-get install ros-kinetic-desktop-full

    3. sudo rosdep init
    4. rosdep update
    5. wstool init src
    6. rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y

    7. sudo apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential

    点击(此处)折叠或打开

    1. sudo apt install android-tools-adb git-review tree lrzsz

    2. sudo apt install dkms graphicsmagick lame libreadline-dev libtinfo-dev libtool-bin libv4l2rds0 xbase-clients

    3. sudo apt install ninja-build libceres-dev libceres1 liblua5.3-0 liblua5.3-dev libpostproc-dev ros-kinetic-amcl ros-kinetic-ar-track-alvar ros-kinetic-ar-track-alvar-msgs ros-kinetic-base-local-planner ros-kinetic-bfl ros-kinetic-carrot-planner ros-kinetic-clear-costmap-recovery ros-kinetic-costmap-2d ros-kinetic-costmap-converter ros-kinetic-costmap-prohibition-layer ros-kinetic-ddynamic-reconfigure ros-kinetic-dwa-local-planner ros-kinetic-ecl-build ros-kinetic-ecl-concepts ros-kinetic-ecl-config ros-kinetic-ecl-errors ros-kinetic-ecl-exceptions ros-kinetic-ecl-license ros-kinetic-ecl-mpl ros-kinetic-ecl-threads ros-kinetic-ecl-time ros-kinetic-ecl-time-lite ros-kinetic-ecl-type-traits ros-kinetic-ecl-utilities ros-kinetic-fake-localization ros-kinetic-global-planner ros-kinetic-laser-proc ros-kinetic-map-msgs ros-kinetic-map-server ros-kinetic-move-base ros-kinetic-move-base-msgs ros-kinetic-move-slow-and-clear ros-kinetic-nav-core ros-kinetic-navfn ros-kinetic-navigation ros-kinetic-navigation-layers ros-kinetic-people-msgs ros-kinetic-robot-pose-ekf ros-kinetic-rosserial-client ros-kinetic-rosserial-msgs ros-kinetic-rosserial-python ros-kinetic-rosservice ros-kinetic-rotate-recovery ros-kinetic-serial ros-kinetic-social-navigation-layers ros-kinetic-urg-node ros-kinetic-urg-stamped ros-kinetic-usb-cam ros-kinetic-voxel-grid ros-kinetic-yaml-cpp-0-3 ros-kinetic-yocs-velocity-smoother ros-kinetic-range-sensor-layer ros-kinetic-urg-
    4. 执行 /work/CuteRobot/Waffle/src/third_pkgs/cartographer/scripts/install_proto3.sh 


  • 拷贝 ROS的配置信息. itx_backup
    scp -P 22 -r ray@192.168.43.16:/etc/ROS_ENV .
    scp -P 22 -r ray@192.168.43.16:/etc/udev/rules.d/ros-common.rules .
    scp -P 22 -r ray@192.168.43.16:/opt/ros/kinetic/share/usb_cam/launch .
    scp -P 22 -r ray@192.168.43.16:~/.ros/camera_info .
    scp -P 22 -r ray@192.168.43.16:~/.bashrc .

  • 另外 编译 google cartographer 不通过.参考 https://blog.csdn.net/qq_42138662/article/details/106732334 

    点击(此处)折叠或打开

    1. cd /work/waffle/src
    2.   git clone https://github.com/googlecartographer/cartographer_ros.git
    3.   git clone https://github.com/googlecartographer/cartographer.git
    4.   git clone https://github.com/ceres-solver/ceres-solver.git
    5.   cd ceres-solver
    6.   git checkout 1.14.0
    7.   修改 CMakeList.txt 中第一行添加 set(CMAKE_CXX_FLAGS "-std=c++11")
    8.   mkdir build && cd build; cmake …  -DBUILD_SHARED_LIBS=ON; make; sudo make install

    9. 单独安装protobuf
    10. sudo apt-get install autoconf autogen
    11. git clone https://github.com/protocolbuffers/protobuf.git
    12. cd protobuf
    13. git submodule update --init --recursive
    14. ./autogen.sh
    15. ./configure
    16. make
    17. # 这一步可能会报错,无视就好
    18. make check
    19. sudo make install
    20. sudo ldconfig # refresh shared library cache.

    21. sudo rosdep init//这一步会提示已经有这个文件了,可以跳过
    22.   rosdep update
    23.   rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y


阅读(1474) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~