Skip to content

Commit

Permalink
Update README and test data configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
felixchenfy committed Jul 2, 2021
1 parent 0d3068b commit 1589dff
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 9 deletions.
25 changes: 21 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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]
Expand Down Expand Up @@ -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"

# ==============================================================
Expand Down
2 changes: 0 additions & 2 deletions data/download_instruction.md

This file was deleted.

0 comments on commit 1589dff

Please sign in to comment.