PeterFWS / Structure-PLP-SLAM

[ICRA'23] The official Implementation of "Structure PLP-SLAM: Efficient Sparse Mapping and Localization using Point, Line and Plane for Monocular, RGB-D and Stereo Cameras"
GNU General Public License v3.0
391 stars 60 forks source link

can not find frame_trajectory.txt #17

Open houyiliang opened 11 months ago

houyiliang commented 11 months ago

./build/run_tum_rgbd_slam_with_line -v ./orb_vocab/orb_vocab.dbow2 -d ../datasets/TUM/rgbd_dataset_freiburg3_large_cabinet/ -c ./example/tum_rgbd/TUM_RGBD_rgbd_3.yaml --eval-log or ./build/run_tum_rgbd_slam_with_line -v ./orb_vocab/orb_vocab.dbow2 -d ../datasets/TUM/rgbd_dataset_freiburg3_large_cabinet/ -c ./example/tum_rgbd/TUM_RGBD_rgbd_3.yaml --eval-log frame_trajectory.txt Hello, I've tried adding both "--eval-log" and "--eval-log frame_trajectory.txt" to the command, but I couldn't find the corresponding trajectory file after running it. Can you please help me? Thank you.

C-H-Chien commented 7 months ago

You can turn the if(eval_log) statement off so that it forces you to write the results to files. I have tried that and the frame_trajectory.txt appears in the repository directory.

rangingwaves commented 1 week ago

@C-H-Chien,I still couldn't find the corresponding trajectory file after running it.

rangingwaves commented 1 week ago

I understand now; the results are generated only after closing the visualization window.

C-H-Chien commented 1 week ago

I understand now; the results are generated only after closing the visualization window.

Glad it works for you now. The file is written right after SLAM.shutdown(); which requires closing the visualization window.