AutonomousFieldRoboticsLab / SVIn

Underwater Navigation with tightly coupled fusion of Visual Inertial Sonar and Depth Information
GNU General Public License v3.0
96 stars 19 forks source link

The code obtained from .ZIP and the code obtained from the git clone link are different in the path svin_ws/src/SVIn/pose_graph/src/pose_graph/LoopClosure.cpp, resulting in an error when compiling the .ZIP code. #22

Open 1ADZX opened 12 months ago

1ADZX commented 12 months ago

Hello, when I compile the SVIn package, I get the following error:

/home/dzx2/projects/svin_ws_annotation/src/SVIn/pose_graph/src/pose_graph/LoopClosure.cpp:158:9: error: ‘last_keyframeindex’ was not declared in this scope 158 | last_keyframeindex = keyframe_info->keyframeindex; | ^~~~~~~~ /home/dzx2/projects/svin_ws_annotation/src/SVIn/pose_graph/src/pose_graph/LoopClosure.cpp:174:24: error: ‘last_keyframeindex’ was not declared in this scope 174 | int kf_index = last_keyframeindex + primitive_estimator_kfs - poses.size();

The above SVIn package is a .ZIP package that I downloaded directly from github, instead of using the git clone link you gave me.

Then I compiled the corresponding package from the git clone link you gave, and the same error did not occur.

Finally, I compared the corresponding codes obtained by the two methods. Regarding the difference in the error report, I found that the code obtained by the git clone link and the code obtained by .ZIP were different. I think the code at .ZIP is indeed as indicated in the error report?