gogojjh / M-LOAM

Robust Odometry and Mapping for Multi-LiDAR Systems with Online Extrinsic Calibration
http://gofile.me/4jm56/zU2yvg3bH
473 stars 88 forks source link

python run_mloam.py error #20

Closed 504115681 closed 3 years ago

504115681 commented 3 years ago

Hello, thank you very much for this outstanding work. After I compile it,When starting with python run_mloam.py -program=single_test -sequence=SR -start_idx=0 -end_idx=4 , the following error occurred:

testing sequence: SR01
Traceback (most recent call last):
  File "run_mloam.py", line 267, in <module>
    single_test(args.start_idx, args.end_idx)
  File "run_mloam.py", line 64, in single_test
    os.environ['data_path'] = '{}/home/x/data/{}.bag'.format(os.environ['DATA_PATH'], seq_name[idx])
  File "/usr/lib/python2.7/UserDict.py", line 40, in __getitem__
    raise KeyError(key)
KeyError: 'DATA_PATH'

I put the dataset under /home/x/data/,change the data_path path in run_mloam.py to {}/home/x/data/{}.bag as follows: os.environ['data_path'] = '{}/home/x/data/{}.bag'.format(os.environ['DATA_PATH'], seq_name[idx]) I didn't use Python very much before, so I don't know how to modify it. If you can help, thank you very much!!!

gogojjh commented 3 years ago

Hi, you can add this comment: export DATA_PATH=/home/x/data/ in the terminal. And run this commend in the terminal. Thanks.

504115681 commented 3 years ago

Hi, you can add this comment: export DATA_PATH=/home/x/data/ in the terminal. And run this commend in the terminal. Thanks.

Thank you for your warm reply. I successfully ran the program and got some files under /home/x/catkin_m_loam/src/localization/rpg_trajectory_evaluation/results/handheld/calib_RHD02lab, such as:"initialization.txt"、"config_handheld.yaml"...,but I can't see the result of external parameter calibration under "others" folder (I checked the program and the result file of calibration external parameters should be stored in the "others" folder). 66

666

777777