ignaciotb / bathymetric_slam

BSD 3-Clause "New" or "Revised" License
31 stars 16 forks source link

Inconsistent with auvlib #7

Open zhangbb-john opened 1 year ago

zhangbb-john commented 1 year ago

Hi Ignacio,

I am a phd student from Zhejiang university. Recently I cloned your github project, but when I build it, there are many errors. For example

/bathymetric-slam/src/apps/src/test_slam_real.cpp:202:139: error: no matching function for call to ‘benchmark::track_error_benchmark::track_error_benchmark(const char [10], int, int)’ benchmark::track_error_benchmark benchmark("real_data", config["benchmark_nbr_rows"].as(), config["benchmark_nbr_cols"].as()); ^ 

In file included from /home/ubuntu/Bathymetric-SLAM/src/bathymetric-slam/src/apps/src/test_slam_real.cpp:21:0: /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:64:5: note: candidate: benchmark::track_error_benchmark::track_error_benchmark(const string&) track_error_benchmark(const std::string& dataset_name) : dataset_name(dataset_name) ^~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:64:5: note: candidate expects 1 argument, 3 provided /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:58:5: note: candidate: benchmark::track_error_benchmark::track_error_benchmark() track_error_benchmark() : dataset_name("default") ^~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:58:5: note: candidate expects 0 arguments, 3 provided /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:21:8: note: candidate: benchmark::track_error_benchmark::track_error_benchmark(const benchmark::track_error_benchmark&) struct track_error_benchmark { ^~~~~~~~~~~~~~~~~~~~~ /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:21:8: note: candidate expects 1 argument, 3 provided /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:21:8: note: candidate: benchmark::track_error_benchmark::track_error_benchmark(benchmark::track_error_benchmark&&) /home/ubuntu/Bathymetric-SLAM/src/auvlib/install/include/data_tools/benchmark.h:21:8: note: candidate expects 1 argument, 3 provided

In the example above, it seems that the defined track_error_benchmark function does not take any int number as input It seems that the provided bathymetric_slam project is not consistent with the version of auvlib. Similar errors were reported for the convert_matched_entries function and so forth.

I would appreciate it if you could provide some suggestions in terms of inconsistency with Auvlib. Thanks so much for your time!