|
@@ -32,7 +32,7 @@ void LoadImages(const string &strPathLeft, const string &strPathRight, const str
|
|
vector<string> &vstrImageLeft, vector<string> &vstrImageRight, vector<double> &vTimeStamps);
|
|
vector<string> &vstrImageLeft, vector<string> &vstrImageRight, vector<double> &vTimeStamps);
|
|
|
|
|
|
int main(int argc, char **argv)
|
|
int main(int argc, char **argv)
|
|
-{
|
|
|
|
|
|
+{
|
|
if(argc < 5)
|
|
if(argc < 5)
|
|
{
|
|
{
|
|
cerr << endl << "Usage: ./stereo_euroc path_to_vocabulary path_to_settings path_to_sequence_folder_1 path_to_times_file_1 (path_to_image_folder_2 path_to_times_file_2 ... path_to_image_folder_N path_to_times_file_N) (trajectory_file_name)" << endl;
|
|
cerr << endl << "Usage: ./stereo_euroc path_to_vocabulary path_to_settings path_to_sequence_folder_1 path_to_times_file_1 (path_to_image_folder_2 path_to_times_file_2 ... path_to_image_folder_N path_to_times_file_N) (trajectory_file_name)" << endl;
|
|
@@ -160,7 +160,7 @@ int main(int argc, char **argv)
|
|
}
|
|
}
|
|
|
|
|
|
#ifdef REGISTER_TIMES
|
|
#ifdef REGISTER_TIMES
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t_Start_Rect = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t_Start_Rect = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t_Start_Rect = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t_Start_Rect = std::chrono::monotonic_clock::now();
|
|
@@ -170,7 +170,7 @@ int main(int argc, char **argv)
|
|
cv::remap(imRight,imRightRect,M1r,M2r,cv::INTER_LINEAR);
|
|
cv::remap(imRight,imRightRect,M1r,M2r,cv::INTER_LINEAR);
|
|
|
|
|
|
#ifdef REGISTER_TIMES
|
|
#ifdef REGISTER_TIMES
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t_End_Rect = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t_End_Rect = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t_End_Rect = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t_End_Rect = std::chrono::monotonic_clock::now();
|
|
@@ -183,7 +183,7 @@ int main(int argc, char **argv)
|
|
if(imageScale != 1.f)
|
|
if(imageScale != 1.f)
|
|
{
|
|
{
|
|
#ifdef REGISTER_TIMES
|
|
#ifdef REGISTER_TIMES
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t_Start_Resize = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t_Start_Resize = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t_Start_Resize = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t_Start_Resize = std::chrono::monotonic_clock::now();
|
|
@@ -194,7 +194,7 @@ int main(int argc, char **argv)
|
|
cv::resize(imLeftRect, imLeftRect, cv::Size(width, height));
|
|
cv::resize(imLeftRect, imLeftRect, cv::Size(width, height));
|
|
cv::resize(imRightRect, imRightRect, cv::Size(width, height));
|
|
cv::resize(imRightRect, imRightRect, cv::Size(width, height));
|
|
#ifdef REGISTER_TIMES
|
|
#ifdef REGISTER_TIMES
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t_End_Resize = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t_End_Resize = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t_End_Resize = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t_End_Resize = std::chrono::monotonic_clock::now();
|
|
@@ -204,7 +204,7 @@ int main(int argc, char **argv)
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t1 = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t1 = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t1 = std::chrono::monotonic_clock::now();
|
|
@@ -213,7 +213,7 @@ int main(int argc, char **argv)
|
|
// Pass the images to the SLAM system
|
|
// Pass the images to the SLAM system
|
|
SLAM.TrackStereo(imLeftRect,imRightRect,tframe, vector<ORB_SLAM3::IMU::Point>(), vstrImageLeft[seq][ni]);
|
|
SLAM.TrackStereo(imLeftRect,imRightRect,tframe, vector<ORB_SLAM3::IMU::Point>(), vstrImageLeft[seq][ni]);
|
|
|
|
|
|
- #ifdef COMPILEDWITHC11
|
|
|
|
|
|
+ #ifdef COMPILEDWITHC14
|
|
std::chrono::steady_clock::time_point t2 = std::chrono::steady_clock::now();
|
|
std::chrono::steady_clock::time_point t2 = std::chrono::steady_clock::now();
|
|
#else
|
|
#else
|
|
std::chrono::monotonic_clock::time_point t2 = std::chrono::monotonic_clock::now();
|
|
std::chrono::monotonic_clock::time_point t2 = std::chrono::monotonic_clock::now();
|