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

相关文章

使用 sql-research-assistant进行 SQL 数据库研究的实战指南(代码实现演示)

《使用sql-research-assistant进行SQL数据库研究的实战指南(代码实现演示)》本文介绍了sql-research-assistant工具,该工具基于LangChain框架,集... 目录技术背景介绍核心原理解析代码实现演示安装和配置项目集成LangSmith 配置(可选)启动服务应用场景

使用Python快速实现链接转word文档

《使用Python快速实现链接转word文档》这篇文章主要为大家详细介绍了如何使用Python快速实现链接转word文档功能,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 演示代码展示from newspaper import Articlefrom docx import

oracle DBMS_SQL.PARSE的使用方法和示例

《oracleDBMS_SQL.PARSE的使用方法和示例》DBMS_SQL是Oracle数据库中的一个强大包,用于动态构建和执行SQL语句,DBMS_SQL.PARSE过程解析SQL语句或PL/S... 目录语法示例注意事项DBMS_SQL 是 oracle 数据库中的一个强大包,它允许动态地构建和执行

Ubuntu固定虚拟机ip地址的方法教程

《Ubuntu固定虚拟机ip地址的方法教程》本文详细介绍了如何在Ubuntu虚拟机中固定IP地址,包括检查和编辑`/etc/apt/sources.list`文件、更新网络配置文件以及使用Networ... 1、由于虚拟机网络是桥接,所以ip地址会不停地变化,接下来我们就讲述ip如何固定 2、如果apt安

SpringBoot中使用 ThreadLocal 进行多线程上下文管理及注意事项小结

《SpringBoot中使用ThreadLocal进行多线程上下文管理及注意事项小结》本文详细介绍了ThreadLocal的原理、使用场景和示例代码,并在SpringBoot中使用ThreadLo... 目录前言技术积累1.什么是 ThreadLocal2. ThreadLocal 的原理2.1 线程隔离2

Python安装时常见报错以及解决方案

《Python安装时常见报错以及解决方案》:本文主要介绍在安装Python、配置环境变量、使用pip以及运行Python脚本时常见的错误及其解决方案,文中介绍的非常详细,需要的朋友可以参考下... 目录一、安装 python 时常见报错及解决方案(一)安装包下载失败(二)权限不足二、配置环境变量时常见报错及

Python itertools中accumulate函数用法及使用运用详细讲解

《Pythonitertools中accumulate函数用法及使用运用详细讲解》:本文主要介绍Python的itertools库中的accumulate函数,该函数可以计算累积和或通过指定函数... 目录1.1前言:1.2定义:1.3衍生用法:1.3Leetcode的实际运用:总结 1.1前言:本文将详

浅析如何使用Swagger生成带权限控制的API文档

《浅析如何使用Swagger生成带权限控制的API文档》当涉及到权限控制时,如何生成既安全又详细的API文档就成了一个关键问题,所以这篇文章小编就来和大家好好聊聊如何用Swagger来生成带有... 目录准备工作配置 Swagger权限控制给 API 加上权限注解查看文档注意事项在咱们的开发工作里,API

Java数字转换工具类NumberUtil的使用

《Java数字转换工具类NumberUtil的使用》NumberUtil是一个功能强大的Java工具类,用于处理数字的各种操作,包括数值运算、格式化、随机数生成和数值判断,下面就来介绍一下Number... 目录一、NumberUtil类概述二、主要功能介绍1. 数值运算2. 格式化3. 数值判断4. 随机

Spring排序机制之接口与注解的使用方法

《Spring排序机制之接口与注解的使用方法》本文介绍了Spring中多种排序机制,包括Ordered接口、PriorityOrdered接口、@Order注解和@Priority注解,提供了详细示例... 目录一、Spring 排序的需求场景二、Spring 中的排序机制1、Ordered 接口2、Pri