Ubuntu 16.04 下 PL-SLAM (Stereo) 的安装和使用

2024-05-31 22:32

本文主要是介绍Ubuntu 16.04 下 PL-SLAM (Stereo) 的安装和使用,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

Overview

欢迎访问 https://cgabc.xyz/posts/b4bebaf6/,持续更新

This code rubengooj/pl-slam contains an algorithm to compute stereo visual SLAM by using both point and line segment features.

  • Related Publication

    @article{gomez2017pl,title   = {{PL-SLAM: a Stereo SLAM System through the Combination of Points and Line Segments}},author  = {Gomez-Ojeda, Ruben and Zuñiga-Noël, David and Moreno, Francisco-Angel and Scaramuzza, Davide and Gonzalez-Jimenez, Javier},journal = {arXiv preprint arXiv:1705.09479},year    = {2017}
    

Prerequisites and Dependencies

  • Basics

    sudo apt install build-essential pkg-config libboost-dev \
    libsuitesparse-dev libeigen3-dev libyaml-cpp-dev
    
  • OpenCV 3.x.x

    • I installed OpenCV 3.3.1 along with ros-kinetic
  • G2O

    • recommend version: commit id ff647bd (ff647bd7537860a2b53b3b774ea821a3170feb13)
  • MRPT/mrpt: The Mobile Robot Programming Toolkit

    • recommend version: commit id 0c3d605 (0c3d605c3cbf5f2ffb8137089e43ebdae5a55de3)
    git clone https://github.com/MRPT/mrpt.git
    git branch cg_0c3d605 0c3d605c3cbf5f2ffb8137089e43ebdae5a55de3
    git checkout cg_0c3d605# install dependencies
    sudo apt install libdc1394-22-dev libjpeg-dev libftdi-dev freeglut3-dev \
    libwxgtk3.0-dev zlib1g-dev libusb-1.0-0-dev libudev-dev libfreenect-dev \
    libavformat-dev libswscale-dev libassimp-dev libgtest-dev libpcap-dev# build & install
    mkdir build & cd build
    cmake .. & make -j4
    sudo make install
    
  • rubengooj/stvo-pl: Stereo Visual Odometry by combining point and line segment features

    git clone https://github.com/rubengooj/stvo-pl.git
    cd stvo-pl
    chmod +x build.sh
    ./build.sh
    

Note: it’s better mrpt, stvo-pl and pl-slam are in the same directory

Build

Build pl-slam

git clone https://github.com/rubengooj/pl-slam.git
chmod +x build.sh
./build.sh

Errors

  • Q: /usr/bin/ld: cannot find -lg2o_ext_csparse
    A: sudo ln -sv libg2o_csparse_extension.so libg2o_ext_csparse.so

Run

Dataset

  • Kitti Dataset: data_odometry_gray (~22G)

Kitti data_odometry_gray

  • edit ~/.bashrc, and
    add export DATASETS_DIR=<path-to-data_odometry_gray>/sequences
  • copy pl-slam/config/dataset_params/kitti00-02.yaml
    to <path-to-data_odometry_gray>/sequences/00/,
    rename the yaml file to dataset_params.yaml and change it if necessary
  • source ~/.bashrc
  • edit pl-slam/config/config/config_kitti.yaml, change the value of vocabulary_p and vocabulary_l
  • run
    ./plslam_dataset 00 -c ../config/config/config_kitti.yaml -o 100 -s 1 -n 1000
    or
    ./plslam_dataset 00 -c ../config/config/config_kitti.yaml -o 100 -s 1
Result

EuRoC MH_01_easy

  • edit ~/.bashrc, and add export DATASETS_DIR=<path-to-MH_01_easy>
  • copy pl-slam/config/dataset_params/euroc_params.yaml to <path-to-MH_01_easy>/mav0/,
    rename the yaml file to dataset_params.yaml and change it if necessary
  • source ~/.bashrc
  • edit pl-slam/config/config/config_euroc.yaml, change the value of vocabulary_p and vocabulary_l
  • run ./plslam_dataset mav0 -c ../config/config/config_euroc.yaml -o 100 -s 1

Run Errors

  • the app crashed and get the following error when restart the app after close it with Ctrl+C

    DRM_IOCTL_I915_GEM_APERTURE failed: Invalid argument
    Assuming 131072kB available aperture size.
    May lead to reduced performance or incorrect rendering.
    get chip id failed: -1 [22]
    param: 4, val: 0
    Segmentation fault (core dumped)

    and it fixed after reinstalling Nvidia-driver

  • the app crashed with the error Segmentation fault (core dumped) after run Frame #1600 with the KITTI data_odometry_gray dataset, but have not solved it

这篇关于Ubuntu 16.04 下 PL-SLAM (Stereo) 的安装和使用的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1019218

相关文章

postgresql使用UUID函数的方法

《postgresql使用UUID函数的方法》本文给大家介绍postgresql使用UUID函数的方法,本文给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录PostgreSQL有两种生成uuid的方法。可以先通过sql查看是否已安装扩展函数,和可以安装的扩展函数

如何使用Lombok进行spring 注入

《如何使用Lombok进行spring注入》本文介绍如何用Lombok简化Spring注入,推荐优先使用setter注入,通过注解自动生成getter/setter及构造器,减少冗余代码,提升开发效... Lombok为了开发环境简化代码,好处不用多说。spring 注入方式为2种,构造器注入和setter

MySQL中比较运算符的具体使用

《MySQL中比较运算符的具体使用》本文介绍了SQL中常用的符号类型和非符号类型运算符,符号类型运算符包括等于(=)、安全等于(=)、不等于(/!=)、大小比较(,=,,=)等,感兴趣的可以了解一下... 目录符号类型运算符1. 等于运算符=2. 安全等于运算符<=>3. 不等于运算符<>或!=4. 小于运

虚拟机Centos7安装MySQL数据库实践

《虚拟机Centos7安装MySQL数据库实践》用户分享在虚拟机安装MySQL的全过程及常见问题解决方案,包括处理GPG密钥、修改密码策略、配置远程访问权限及防火墙设置,最终通过关闭防火墙和停止Net... 目录安装mysql数据库下载wget命令下载MySQL安装包安装MySQL安装MySQL服务安装完成

使用zip4j实现Java中的ZIP文件加密压缩的操作方法

《使用zip4j实现Java中的ZIP文件加密压缩的操作方法》本文介绍如何通过Maven集成zip4j1.3.2库创建带密码保护的ZIP文件,涵盖依赖配置、代码示例及加密原理,确保数据安全性,感兴趣的... 目录1. zip4j库介绍和版本1.1 zip4j库概述1.2 zip4j的版本演变1.3 zip4

Python 字典 (Dictionary)使用详解

《Python字典(Dictionary)使用详解》字典是python中最重要,最常用的数据结构之一,它提供了高效的键值对存储和查找能力,:本文主要介绍Python字典(Dictionary)... 目录字典1.基本特性2.创建字典3.访问元素4.修改字典5.删除元素6.字典遍历7.字典的高级特性默认字典

使用Python构建一个高效的日志处理系统

《使用Python构建一个高效的日志处理系统》这篇文章主要为大家详细讲解了如何使用Python开发一个专业的日志分析工具,能够自动化处理、分析和可视化各类日志文件,大幅提升运维效率,需要的可以了解下... 目录环境准备工具功能概述完整代码实现代码深度解析1. 类设计与初始化2. 日志解析核心逻辑3. 文件处

一文详解如何使用Java获取PDF页面信息

《一文详解如何使用Java获取PDF页面信息》了解PDF页面属性是我们在处理文档、内容提取、打印设置或页面重组等任务时不可或缺的一环,下面我们就来看看如何使用Java语言获取这些信息吧... 目录引言一、安装和引入PDF处理库引入依赖二、获取 PDF 页数三、获取页面尺寸(宽高)四、获取页面旋转角度五、判断

Ubuntu 24.04启用root图形登录的操作流程

《Ubuntu24.04启用root图形登录的操作流程》Ubuntu默认禁用root账户的图形与SSH登录,这是为了安全,但在某些场景你可能需要直接用root登录GNOME桌面,本文以Ubuntu2... 目录一、前言二、准备工作三、设置 root 密码四、启用图形界面 root 登录1. 修改 GDM 配

C++中assign函数的使用

《C++中assign函数的使用》在C++标准模板库中,std::list等容器都提供了assign成员函数,它比操作符更灵活,支持多种初始化方式,下面就来介绍一下assign的用法,具有一定的参考价... 目录​1.assign的基本功能​​语法​2. 具体用法示例​​​(1) 填充n个相同值​​(2)