diff --git a/README.md b/README.md index 066b84e..dcf80f4 100644 --- a/README.md +++ b/README.md @@ -184,11 +184,28 @@ Download here: https://github.com/RainerKuemmerle/g2o. Checkout to the last version in year 2017. Do cmake, make, make install. # 4. How to Run -> $ mkdir build && mkdir lib && mkdir bin -> $ cd build && cmake .. && make && cd .. -Then, set up things in [config/config.yaml](config/config.yaml), and run: -> $ bin/run_vo config/config.yaml +Compile: +```bash +mkdir -p build lib bin +cd build && cmake .. && make -j4 && cd .. +``` + +Download some data: +```bash +mkdir -p data +cd data +git clone https://github.com/felixchenfy/Monocular-Visual-Odometry-Data +mv Monocular-Visual-Odometry-Data/* ./ +rm Monocular-Visual-Odometry-Data +ls +# dataset_images_matlab README.md result test_data +``` + +Then, take a look at the configurations in [config/config.yaml](config/config.yaml). The file paths have already been configured, so you don't need to change anything at this moment. + +Finally, run: +> bin/run_vo config/config.yaml # 5. Results diff --git a/config/config.yaml b/config/config.yaml index 011a0db..592bdbe 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -11,7 +11,7 @@ dataset_name: "matlab" matlab: # New Tsukuba Stereo dataset used in matlab tutorial # -- Data dir - dataset_dir: /home/feiyu/Documents/Projects/2018-winter/EECS432_CV_VO/data/dataset_images_matlab + dataset_dir: data/dataset_images_matlab num_images: 150 # -- Camera intrinsics (The images should all be undistorted) @@ -22,7 +22,7 @@ matlab: # New Tsukuba Stereo dataset used in matlab tutorial # -- Load groundtruth trajectory is_draw_true_traj: "true" # Ground truth traj's color is set as green. Estimated is set as white. - true_traj_filename: /home/feiyu/Documents/Projects/2018-winter/EECS432_CV_VO/data/test_data/cam_traj_truth.txt + true_traj_filename: data/test_data/cam_traj_truth.txt # Format of ground-truth data: # In each row, there are 12 numbers representing the transformation matrix T=[R|t]. # Order of the 12 numbers: tx, ty, tz, R[:,0], R[:,1], R[:,2] @@ -53,7 +53,7 @@ max_num_imgs_to_proc: 300 # is_pcl_wait_for_keypress: "true" # If true, PCL Viewer will stop after each update, and wait for your keypress. is_pcl_wait_for_keypress: "false" cv_waitkey_time: 1 -save_predicted_traj_to: /home/feiyu/Documents/Projects/2018-winter/EECS432_CV_VO/data/test_data/cam_traj.txt +save_predicted_traj_to: data/test_data/cam_traj.txt output_folder: "output" # ============================================================== diff --git a/data/download_instruction.md b/data/download_instruction.md deleted file mode 100644 index fcc7b85..0000000 --- a/data/download_instruction.md +++ /dev/null @@ -1,2 +0,0 @@ - -Download all things from here: https://github.com/felixchenfy/Monocular-Visual-Odometry-Data, and put into the root of this project. \ No newline at end of file