|
8 | 8 | +---------------------------------------------------------------------------+ */
|
9 | 9 |
|
10 | 10 | #include "DifOdometry_Datasets.h"
|
11 |
| -#include <mrpt/opengl.h> |
12 |
| -#include <mrpt/gui.h> |
13 | 11 |
|
14 | 12 | using namespace mrpt;
|
15 | 13 | using namespace mrpt::opengl;
|
@@ -50,7 +48,6 @@ void CDifodoDatasets::loadConfiguration(const utils::CConfigFileBase &ini )
|
50 | 48 | if (f_gt.fail())
|
51 | 49 | throw std::runtime_error("\nError finding the groundtruth file: it should be contained in the same folder than the rawlog file");
|
52 | 50 |
|
53 |
| - |
54 | 51 | char aux[100];
|
55 | 52 | f_gt.getline(aux, 100);
|
56 | 53 | f_gt.getline(aux, 100);
|
@@ -94,7 +91,7 @@ void CDifodoDatasets::loadConfiguration(const utils::CConfigFileBase &ini )
|
94 | 91 | const int dz = floor(float(resv)/float(rows));
|
95 | 92 | const int dy = floor(float(resh)/float(cols));
|
96 | 93 |
|
97 |
| - duv_threshold = 0.001*(dz + dy)*(cam_mode*downsample); //Faster with cam_mode=4, the filter should be adjusted if it changes |
| 94 | + duv_threshold = 0.001*(dz + dy)*(cam_mode*downsample); |
98 | 95 | dt_threshold = 0.2*fps;
|
99 | 96 | dif_threshold = 0.001*(dz + dy)*(cam_mode*downsample);
|
100 | 97 | difuv_surroundings = 0.005*(dz + dy)*(cam_mode*downsample);
|
@@ -241,7 +238,6 @@ void CDifodoDatasets::initializeScene()
|
241 | 238 | //User-interface information
|
242 | 239 | utils::CImage img_legend;
|
243 | 240 | img_legend.loadFromXPM(legend_xpm);
|
244 |
| - //img_legend.loadFromFile("C:/Users/Mariano/Desktop/legend.jpg"); |
245 | 241 | COpenGLViewportPtr legend = scene->createViewport("legend");
|
246 | 242 | legend->setViewportPosition(20, 20, 348, 200);
|
247 | 243 | legend->setImageView(img_legend);
|
@@ -635,11 +631,8 @@ void CDifodoDatasets::writeToLogFile()
|
635 | 631 |
|
636 | 632 | f_res << abs_error_tras << " ";
|
637 | 633 | f_res << abs_error_rot << " ";
|
638 |
| - |
639 | 634 | f_res << execution_time << " ";
|
640 |
| - |
641 | 635 | f_res << num_valid_points << " ";
|
642 |
| - |
643 | 636 | f_res << "\n";
|
644 | 637 | }
|
645 | 638 |
|
|
0 commit comments