Git Product home page Git Product logo

orb-slam-android's Introduction

ORB-SLAM-Android


This project is based on the source code from Raul Mur-Artal.// For more information or lastest updated of the source code, please go to: https://github.com/raulmur/ORB_SLAM2

The Native codes needed to be cross-compiled by android ndk. My test was based on android-ndk-r11. http://developer.android.com/ndk/downloads/index.html

This project needs support of Opencv4Android 2.4.11, for more information, please go to: http://docs.opencv.org/2.4/doc/tutorials/introduction/android_binary_package/O4A_SDK.html

Other dependencies such as g2o, DBoW2, Eigen, were included in the project codes.


To Build the code:

  1. excute ndk-build either Android Studio or in the terminal(if you have added ndk-build into the environment) in
  2. click "Run" in Android Studio

To Run the code:

  1. Place the vocabulary file and camera setting file into your /externalStorage/ORB2 folder, you should create this folder at the very first time.
    please note: the external storage directory is getting by getExternalStorageDirectory(), the return values of this function varies for different brands of smartphones, so before starting the application, please double check if the file location is correct, and if the files are successfully loaded. Loading this two files unsuccessfully will make the app crash.

if you don't have this two files in hand, please download in:

  1. vocabulary file
    https://github.com/raulmur/ORB_SLAM2/tree/master/Vocabulary
  2. setting file
    https://github.com/raulmur/ORB_SLAM2/blob/master/Examples/Monocular/KITTI00-02.yaml

the parameters in the setting file should be reset according to your camera on the smartphone.


Something else

Due to the compliexity and efficiency of the code, Viewer thread depends on pangolin library in the original work was disabled here.

By now, only basic functions were supported. The pose of every frame returns via android log files, which are easy to check via Android Studio. Some basic debug info have been added, feel free to add others as you need.

These codes were successfully test on Sony Xperia Z. It should be easily expanded to another platform. Note that currently compiling only works for armeabi-v7a, please check the Application.mk and Android.mk files to fit your basic setting to the specific platform.

orb-slam-android's People

Contributors

castoryan avatar

Watchers

zhang chen 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.