ORB_SLAM2_Android
链接:https://github.com/FangGet/ORB_SLAM2_Android
README.md 说明文件
This Project is out of date 该工程过时了
This project is an Android version for ORB_SLAM2 based on Raul Mur-Artal's opensource project: ORB_SLAM2. 该工程项目是一个基于Raul Mur-Artal的开源项目ORB_SLAM2的Android版本。
Author: Frank 作者:Frank
If anyone would like to only have a test on it, please visit:ORB_SLAM2_Android_APK; 如果有人只是想测试一下而已,那么请访问:ORB_SLAM2_Android_APK。
1.Dependency依赖项
- Eclipse with ADT and android-ndk-r11; 带有ADT和android-ndk-r11的Eclipse;
- OpenCV4Android2.4.9,download here:opencv4android 2.4.9; OpenCV4Android2.4.9,这里下载:opencv4android 2.4.9。
- All necessary dependencies required by ORB_SLAM2 except pangolin(I removed pangolin and rewrited opengl part for android);所有ORB_SLAM2所需要的依赖项,除了pangolin(我移除了pangolin,并重写了Android的opengl部分)。
2.Build Project编译工程
To build ORB_SLAM2_Android, you can simply import cloned project into eclipse and import opencv2.4.9forAndroid library into Eclipse. Then set it as ORB's library project(it may have been setted already).Run ndk-build and library will be generated into libs directory. After all this, your work tree will be like this:
要编译ORB_SLAM2_Android,你只需要简单地引入克隆项目,然后引入opencv2.4.9forAndroid。然后将它设为ORB的库项目(这可能已经被设立了)。运行ndk-build,然后库将被生成到libs目录。做完这些后,你的项目树将看起来像这样子:
To convert it into Android Studio, you need to create a new AS project and add core code as a module of it while opencv library will also be a module.
3.Using Instruction
- if you want to test camera mode, please make sure you have installed corresponding version of opencvForAndroid library into your phone and it has been opened;
- open the apk. There are two parts for ORB,namely dataset-mode and camera-mode:
- select dataset-mode and select corresponding files for test(you have to pull ORBvoc.txt/TUMX.yaml/dataset to you external storage), ps:there is a button named select special for directory select;
- finish and start SLAM,then voc will be loaded, this may take about one minute(depend on your phone) and system will run automaticlly after initiate step finished;
- camera-mode is nearly the same as dataset mode;
4.Something else
- you can change size of camera preview in res/activity_camera _orb.xml;
- there is some bug with the demonstrate of camera pose, if anyone want to fix it, they can modify MapDrawer::DrawCurrentCamera() in jni/ORB_SLAM2/src/MapDrawer.cc
- some dependencies inside jni/Thirdparty may be excess and can be removed. I have never checked for it;
5.Ending
If you have any questions, feel free to contact me fangasfrank@gmail.com
http://blog.csdn.net/zf19921020/article/details/51154358
根据楼主的配置跑起来了,但是为什么蓝色的相机姿态绘制不出来?仔细检查了一下在MapDrawer::DrawKeyFrames中 也没发现什么问题。。十分希望楼主能解答一下orz
- Re: YOY_ 2017-07-27 11:51发表 [回复]

- 回复ouyangying123:已解决,问题是出在绘制keyframe之后的绘制点云函数中,把颜色缓存冲掉了,还有个问题就是绘制出来的路径效果很差,与pc上跑出来的效果差了不少,不知道是不是因为单目的原因。。
ORB_SLAM2_Android的更多相关文章
- 一颗躁动的心---下决心从SLAM开始,不钻研嵌入式底层了
在写这个随笔时,北京的外面正在下2016的第一场雪.夜深人尽之时总会考虑一下自己的未来在何方. 长这么大了,我发现我这人始终不能坚定不移的朝着一个方向努力,总是朝三暮四,对学习更是朝令夕改,这造成了我 ...
- [SLAM] 03. ORB-SLAM2
一年后再读SLAM~ 行业有了不少工程实践方面的突破 一.链接:https://www.zhihu.com/question/53571648/answer/176732257 目前来说,受到业界肯定 ...
- OpenCV4Android安装
转:http://blog.csdn.net/gao_chun/article/details/49359535 1.下载及目录介绍 2.将 OpenCV引入 Android Studio 3.更新 ...
随机推荐
- 5月22日上课笔记-js属性选择器、过滤选择器、鼠标事件
一.属性选择器 [attr] 包含属性 [attr=value] 属性值 [attr!=value] 属性值不等于value [attr^=value] 属性值以value开头 [attr$=valu ...
- 为什么多线程读写 shared_ptr 要加锁?
https://www.cnblogs.com/Solstice/archive/2013/01/28/2879366.html 为什么多线程读写 shared_ptr 要加锁? 陈硕(giantch ...
- 关于i++的解释
根据 JavaScript Language Specification 的定义, 表达式 A=B的执行步骤,简单地说,就是:1. 对等号左边的表达式 A 进行计算,算出最终的结果,必须是参照或变量: ...
- 【C++】
C++声明function后面加上等于0(=0)何解? https://zhidao.baidu.com/question/1446181256925153340.html
- Vue.js+Koa2移动电商 笔记
一.搭建项目架构: 项目采用Webpack+Vue-router的架构方式,开始安装(基于windows系统) 1.按Win+R,然后在文本框中输入cmd,回车打开命令行,输入vue-cli安装命令: ...
- 爬虫——回顾HTTP 协议
一.HTTP协议 1.官方概念: HTTP协议是Hyper Text Transfer Protocol(超文本传输协议)的缩写,是用于从万维网(WWW:World Wide Web )服务器传输超文 ...
- ARM汇编中值滤波实验
其实就是 汇编的排序然后选出中位数 排序写的是最直接的冒泡排序,因为简单. 相应的C代码 r2=r0; while(r1<r0){ r1++; r2=r2-; r3=; while(r3< ...
- Python基础学习九 单元测试
import unittest import HTMLTestRunner #产生测试报告 from BeautifulReport import BeautifulReport def calc(x ...
- C#基础编程试题 4
一.题目 使用递归算法和二维数组,根据下面条件排序上面的对象. 五个人 张三 李四 王五 猴六 麻七 五间房子 黄房子 蓝房子 红房子 绿房子 橙房子 五只宠物 蜗牛 小狗 小猫 小白兔 小金鱼 五个 ...
- 塔防游戏 Day1
1. 创建地图 如上图所示,白色方块为可以放置塔楼的区域,粉红色区域为敌人的行走区域,绿色方块处为起始点,黄色方块点为终止点. 2. 控制游戏的视野 public class ViewScript : ...