Giter Site home page Giter Site logo

learn-vslam's Introduction

learn-vslam

Learn slam by hand using python

learn from twitchslam

环境配置

(依旧是推荐使用conda和系统的环境隔离,防止损坏环境)

  • opencv
  • pygame
  • g2o
  • pangolin
  • pyopengl
  • scikit-image
  • numpy

下面是环境配置(因为怕一些文件和之前配置的系统环境有冲突,为了防止损坏环境,使用docker):

  • 使用docker配环境比较好,基础环境使用opencvcourses/opencv-docker:4.4.0, 运行如下命令: xhost +local:root

docker run --name learn-vslam --runtime=nvidia -ti -e DISPLAY=unix$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v ~/learn-pyhton/slam-visual:/slam-visual opencvcourses/opencv-docker:4.4.0 ~/Downloads:/dataVol

  • 文件比较大,耐心等待下载

到这里可以进行刚g2o和panlion的python版本编译 具体参考https://github.com/uoip/g2opyhttps://github.com/uoip/pangolin

twitchslam原作者在这里也折腾了很长时间,要有耐心!

如果只安装g2o可以在上述docker中,但在安装pangolin时候会产生冲突(opengl相关的问题,pangolin安装好,opencv会有问题,或者无法进行图形化界面操作),最后都成功是在电脑实体上(!建议在干净的实体机上,更容易些,使用apt安装包有可能在解决问题时损坏文件依赖关系,请提前做好备份),折腾的时候经过测试python3.6或者3.7都可以成功,一般编译不通过的看issue基本都可以解决。

导入成功后需要测试uiop作者的示例,都通过才可以,我这里没遇到issue中的导入成功后某些类导入失败。

learn-vslam's People

Contributors

curious-energy avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.