-
Notifications
You must be signed in to change notification settings - Fork 0
/
orbslam-changes.diff
executable file
·67 lines (64 loc) · 2.03 KB
/
orbslam-changes.diff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 08a8af4..ae72014 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -111,3 +111,28 @@ add_executable(mono_euroc
Examples/Monocular/mono_euroc.cc)
target_link_libraries(mono_euroc ${PROJECT_NAME})
+# ---------------
+# Installation instructions.
+# Will install to CMAKE_INSTALL_PREFIX
+# This defaults to /usr/local/, specify -DCMAKE_INSTALL_PREFIX when calling cmake to specify an alternate location
+# e.g. cmake -DCMAKE_INSTALL_PREFIX="~/local"
+# ---------------
+
+install(TARGETS ${PROJECT_NAME}
+ DESTINATION lib
+ COMPONENT library)
+install(FILES
+ ${PROJECT_SOURCE_DIR}/Thirdparty/DBoW2/lib/libDBoW2.so
+ ${PROJECT_SOURCE_DIR}/Thirdparty/g2o/lib/libg2o.so
+ DESTINATION lib
+ COMPONENT library)
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
+ DESTINATION include/ORB_SLAM2
+ COMPONENT library
+ FILES_MATCHING PATTERN "*.h"
+ PATTERN "Thirdparty" EXCLUDE)
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/Thirdparty/
+ DESTINATION include/ORB_SLAM2/Thirdparty
+ COMPONENT library
+FILES_MATCHING REGEX ".*\\.h(pp)?")
+
diff --git a/include/System.h b/include/System.h
index b377b45..a564b19 100644
--- a/include/System.h
+++ b/include/System.h
@@ -119,6 +119,8 @@ public:
// Information from most recent processed frame
// You can call this right after TrackMonocular (or stereo or RGBD)
int GetTrackingState();
+ vector<KeyFrame*> GetKeyFrames() const;
+ Tracking* GetTracker() const;
std::vector<MapPoint*> GetTrackedMapPoints();
std::vector<cv::KeyPoint> GetTrackedKeyPointsUn();
diff --git a/src/System.cc b/src/System.cc
index 8df4157..f5e0c60 100644
--- a/src/System.cc
+++ b/src/System.cc
@@ -477,6 +477,16 @@ int System::GetTrackingState()
return mTrackingState;
}
+vector<KeyFrame*> System::GetKeyFrames() const
+{
+ return mpMap->GetAllKeyFrames();
+}
+
+Tracking* System::GetTracker() const
+{
+ return mpTracker;
+}
+
vector<MapPoint*> System::GetTrackedMapPoints()
{
unique_lock<mutex> lock(mMutexState);