当前位置:   article > 正文

Ubuntu20.04系统安装Cartographer云里雾里?跟着以下步骤轻松搞定!_ubuntu 20.04 arm cartographer

ubuntu 20.04 arm cartographer

下载和安装

(cartographer_ros:https://github.com/cartographer-project/cartographer_ros

解压命名为 cartographer_ros,存放在~/Dowloads文件夹里面)

  1. //导入工程
  2. sudo apt-get update
  3. sudo apt-get install -y python3-wstool python3-rosdep ninja-build stow
  4. mkdir ~/cartographer_ws
  5. cd ~/cartographer_ws
  6. mkdir catkin_ws
  7. cd catkin_ws
  8. wstool init src
  9. cp -r ~/Dowloads/cartographer_ros ~/cartographer_ws/catkin_ws/src
  10. wstool update -t sr
  11. sudo rosdep init
  12. rosdep update
  13. rosdep install --from-paths src --ignore-src --rosdistro=${ROS_DISTRO} -y
  14. //安装required libraries
  15. cd ~/cartographer_ws
  16. sudo apt-get update
  17. sudo apt-get install -y \
  18. clang \
  19. cmake \
  20. g++ \
  21. git \
  22. google-mock \
  23. libboost-all-dev \
  24. libcairo2-dev \
  25. libceres-dev \
  26. libcurl4-openssl-dev \
  27. libeigen3-dev \
  28. libgflags-dev \
  29. libgoogle-glog-dev \
  30. liblua5.2-dev \
  31. libsuitesparse-dev \
  32. lsb-release \
  33. ninja-build \
  34. python3-sphinx \
  35. stow
  36. git clone https://github.com/abseil/abseil-cpp.git
  37. cd abseil-cpp
  38. git checkout 215105818dfde3174fe799600bb0f3cae233d0bf
  39. mkdir build
  40. cd build
  41. cmake -G Ninja \
  42. -DCMAKE_BUILD_TYPE=Release \
  43. -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
  44. -DCMAKE_INSTALL_PREFIX=/usr/local/stow/absl \
  45. ..
  46. ninja
  47. sudo ninja install
  48. cd /usr/local/stow
  49. sudo stow absl
  50. //编译
  51. cd ~/cartographer_ws/catkin_ws
  52. catkin_make_isolated --install --use-ninja

测试

  1. //下载2D地图数据包
  2. wget -P ~/Downloads https://storage.googleapis.com/cartographer-public-data/bags/backpack_2d/cartographer_paper_deutsches_museum.bag
  3. cd ~/cartographer_ws/catkin_ws
  4. source install_isolated/setup.bash
  5. roslaunch cartographer_ros demo_backpack_2d.launch bag_filename:=${HOME}/Downloads/cartographer_paper_deutsches_museum.bag

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/876829
推荐阅读
相关标签
  

闽ICP备14008679号