Code Monkey home page Code Monkey logo

orb_slam2_aruco's Introduction

ORB_SLAM2_aruco

This SLAM system is based on ORB_SLAM2.

I added fiducial markers--Aruco to obtain the scale, decrease scale drift, and track in large-scale environment.

I learned a lot from UcoSLAM, and wrote the codes from my personal understanding.

map1

large-scene2

Function:

  1. It can initialize map by Aruco or Keypoints. If initial by Keypoints, there is a module to correct scale.(In the LocalMapping thread, I commented this code because I usually use aruco to initial map. But it still work)
  2. It can track by MapPoint and MapAruco features.
  3. It can update all features and keyframe in localMapping thread.
  4. It can detect and correct loop by MapAruco or MapPoints, and update all features in the global bundle adjustment.
  5. It can show Aruco in the map.

Details:

  1. Using MapAruco to represent marker features( in "MapAruco.h" file).
  2. Modifying and adding these in Tracking thread:
    • MonocularInitialization(): including the way to initialize by Aruco.
    • TrackByAruco()
    • RelocalizationByAruco()
    • NeedNewKeyFrame(): Adding a KeyFrame when there is a new Aruco.
    • CreateNewKeyFrame(): Creating new MapAruco features.
  3. Modifying and adding these in LocalMapping thread:
    • CreateArucoMapPoints(): to correct scale
  4. Modifying and adding these in LoopClosing thread:
    • DetectLoopByAruco()
    • ComputeSim3ByAruco();
    • CorrectLoopByAruco();
  5. Modifying a lot in class Optimizer, class Map, and class Initializer.
  6. Modifying a little in class frame, class MapPoint, class MapDrawer, and class Keyframe.
  7. Adding file "InitKeyFrame.h", "SystemSetting.h" to save the map.
  8. Adding Aruco in the Thirdparty folder.

Run

./mono_tum path_to_vocabulary    videofile  cameraparams.yml outposes ARUCO_DIC 

like:

./Examples/Monocular/mono_cvcam Vocabulary/ORBvoc.txt /home/(user name)/data/spm-slam/video1.mp4 /home/(user name)/data/spm-slam/camera1.yml /home/(user name)/data/spm-slam/save-pose-file-name.txt ARUCO  

orb_slam2_aruco's People

Contributors

carminliu 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.