Skip to content

Commit d6051a9

Browse files
author
Nav Ganti
committedJun 16, 2018
add cmake
1 parent dc505d1 commit d6051a9

File tree

6 files changed

+50
-13
lines changed

6 files changed

+50
-13
lines changed
 

‎.gitignore

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
CMakeLists.txt.user
2+
Examples/Stereo/stereo_kitti
3+
tests/test_bayesian_segnet
4+
CameraTrajectory.txt
5+
dependencies/DBoW2/build/
6+
dependencies/DBoW2/lib/
7+
dependencies/g2o/build/
8+
dependencies/g2o/lib/
9+
config/Vocabulary/ORBvoc.txt
10+
build/
11+
*~
12+
lib/
13+
cmake-build-debug/
14+
cmake-build-release/
15+
.idea
16+
*.caffemodel
17+

‎odometry/devkit/CMakeLists.txt

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
cmake_minimum_required(VERSION 2.8)
2+
project(evaluate_odometry)
3+
4+
# C++ 11
5+
set(CMAKE_CXX_STANDARD 11)
6+
7+
if (NOT CMAKE_BUILD_TYPE)
8+
MESSAGE(STATUS "Using 'Release' build type as CMAKE_BUILD_TYPE is not set")
9+
set(CMAKE_BUILD_TYPE Release)
10+
endif()
11+
12+
MESSAGE("Build type: " ${CMAKE_BUILD_TYPE})
13+
14+
include_directories(include)
15+
16+
add_library(${PROJECT_NAME}_libs
17+
src/matrix.cpp
18+
)
19+
20+
add_executable(${PROJECT_NAME}
21+
src/evaluate_odometry.cpp
22+
)
23+
24+
target_link_libraries(${PROJECT_NAME}
25+
${PROJECT_NAME}_libs
26+
)
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
CMakeLists.txt not found in /home/pganti/git/kitti_scripts/odometry/devkit
1+
/home/pganti/Software/clion-2017.3/bin/cmake/bin/cmake -DCMAKE_BUILD_TYPE=Debug -G "CodeBlocks - Unix Makefiles" /home/pganti/git/kitti_scripts/odometry/devkit
2+
Build type: Debug
3+
-- Configuring done
4+
-- Generating done
5+
-- Build files have been written to: /home/pganti/git/kitti_scripts/odometry/devkit/cmake-build-debug
File renamed without changes.

‎odometry/devkit/cpp/evaluate_odometry.cpp ‎odometry/devkit/src/evaluate_odometry.cpp

+2-12
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ bool eval (string result_sha) {
480480
return true;
481481
}
482482

483-
int32_t main (int32_t argc,char *argv[]) {
483+
int main (int32_t argc,char *argv[]) {
484484

485485
// we need 4 arguments!
486486
if (argc!=4) {
@@ -493,19 +493,9 @@ int32_t main (int32_t argc,char *argv[]) {
493493
string gt_file = argv[2];
494494
string ref_file = argv[3];
495495

496-
// init notification mail
497-
Mail *mail;
498-
if (argc==4) mail = new Mail(argv[3]);
499-
else mail = new Mail();
500-
mail->msg("Thank you for participating in our evaluation!");
501-
502496
// run evaluation
503-
bool success = eval(result_sha,mail);
504-
if (argc==4) mail->finalize(success,"odometry",result_sha,argv[2]);
505-
else mail->finalize(success,"odometry",result_sha);
497+
bool success = eval(result_sha ,mail);
506498

507-
// send mail and exit
508-
delete mail;
509499
return 0;
510500
}
511501

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.