Code Monkey home page Code Monkey logo

orb_slam2_unity's Introduction

ORB_SLAM2 Unity

IMAGE ALT TEXT HERE

This is a sample project for using ORB_SLAM2 stereo for inside-out tracking of AR/VR scenario with VisionerTech VMG-PROV setup. We compile ORB_SLAM2 in windows and use it as a rendering plugin for Unity. A loose coupling IMU approach for camera rotation running only in Unity side, on the other hand, camera position is provided by ORB_SLAM2. "/RenderingPlugin/" holds a visual studio 2013 project building ORB_SLAM2, camera capturing, IMU data, rendeing setup and other things to a .dll for Unity. "/UnityProject/" holds a Unity project.

Hardware Requirement:

  1. Recommended specs: Intel Core i5-4460/8G RAM/GTX 660/at least two USB3.0/
  2. Windows x64 version.(tested on win7/win10)

How to Run Unity project

  1. If no Visual Studio 2013 is installed, install X64 version of Visual C++ Redistributable Packages for Visual Studio 2013.
  2. Replace the calibration files in "/save_param/" to your VMG-PROV setup.
  3. Open the project with Unity Editor X64 version(tested with Unity 5.4.0f3 (64-bit)).
  4. Open the "scene" scene.
  5. "StereoCamera" Object holds a pair of Camera and real world image background. "WorldPlaneIMU" object holds a virtual world surface plane and a cylinder. If you are adding your own objects, please do add them under WorldPlaneIMU.
  6. Run it and you will see stereo image pairs.
  7. Click "Button" to start SLAM system for tracking the camera pose.
  8. If you want to build a running .exe, please do build x64 version.

How to Compile Rendering Plugin

  1. "/RenderingPlugin/VisualStudio2013/RenderingPlugin.sln" holds the Visual Studio 2013 project compiling the dll for Unity. Please do use Visual Studio 2013 to compile, dependencies like OSB_SLAM2 is compiled in a Visual Studio 2013 environment(it takes some time to port from Linux), it's no guarantee of success with other compilers.
  2. Install OpenCV 3(tested with OpenCV 3.1.0) and config RenderingPlugin project to your environment.
  3. "/ORB_SLAM2/" holds prebuild libs of ORB_SLAM2.
  4. Build the Release X64 version. The RenderingPlugin.dll is copied to "/UnityProject/Assets/Plugins/x86_64/".

orb_slam2_unity's People

Contributors

flankechen avatar

Stargazers

 avatar

Watchers

 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.