33 #include "ui_aboutDialog.h"
34 #include <opencv2/core/version.hpp>
35 #include <pcl/pcl_config.h>
36 #include <vtkVersion.h>
43 _ui =
new Ui_aboutDialog();
46 QString cv_version = CV_VERSION;
47 #if CV_MAJOR_VERSION < 3
48 #ifdef RTABMAP_NONFREE
49 _ui->label_opencv_license->setText(
"Not Commercial [With nonfree module]");
51 _ui->label_opencv_license->setText(
"BSD [Without nonfree module]");
53 #elif defined(HAVE_OPENCV_XFEATURES2D)
54 #ifdef RTABMAP_NONFREE
55 _ui->label_opencv_license->setText(
"Not Commercial [With xfeatures2d and nonfree modules]");
57 #if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION==4 && CV_MINOR_VERSION<5)
58 _ui->label_opencv_license->setText(
"BSD [With xfeatures2d module]");
60 _ui->label_opencv_license->setText(
"Apache 3 [With xfeatures2d module]");
64 #if CV_MAJOR_VERSION < 4 || (CV_MAJOR_VERSION==4 && CV_MINOR_VERSION<5)
65 _ui->label_opencv_license->setText(
"BSD [Without xfeatures2d and nonfree modules]");
67 _ui->label_opencv_license->setText(
"Apache 3 [Without xfeatures2d and nonfree modules]");
71 _ui->label_opencv_version->setText(cv_version);
72 _ui->label_pcl_version->setText(PCL_VERSION_PRETTY);
73 _ui->label_vtk_version->setText(vtkVersion::GetVTKVersion());
74 _ui->label_qt_version->setText(qVersion());
75 #ifdef RTABMAP_ORB_OCTREE
76 _ui->label_orboctree->setText(
"Yes");
77 _ui->label_orboctree_license->setEnabled(
true);
79 _ui->label_orboctree->setText(
"No");
80 _ui->label_orboctree_license->setEnabled(
false);
83 _ui->label_sptorch->setText(
"Yes");
84 _ui->label_sptorch_license->setEnabled(
true);
86 _ui->label_sptorch->setText(
"No");
87 _ui->label_sptorch_license->setEnabled(
false);
90 _ui->label_pymatcher->setText(
"Yes");
91 _ui->label_pymatcher_license->setEnabled(
true);
93 _ui->label_pymatcher->setText(
"No");
94 _ui->label_pymatcher_license->setEnabled(
false);
97 _ui->label_fastcv->setText(
"Yes");
98 _ui->label_fastcv_license->setEnabled(
true);
100 _ui->label_fastcv->setText(
"No");
101 _ui->label_fastcv_license->setEnabled(
false);
103 #ifdef RTABMAP_OCTOMAP
104 _ui->label_octomap->setText(
"Yes");
105 _ui->label_octomap_license->setEnabled(
true);
107 _ui->label_octomap->setText(
"No");
108 _ui->label_octomap_license->setEnabled(
false);
110 #ifdef RTABMAP_GRIDMAP
111 _ui->label_gridmap->setText(
"Yes");
112 _ui->label_gridmap_license->setEnabled(
true);
114 _ui->label_gridmap->setText(
"No");
115 _ui->label_gridmap_license->setEnabled(
false);
117 #ifdef RTABMAP_CPUTSDF
118 _ui->label_cputsdf->setText(
"Yes");
119 _ui->label_cputsdf_license->setEnabled(
true);
121 _ui->label_cputsdf->setText(
"No");
122 _ui->label_cputsdf_license->setEnabled(
false);
124 #ifdef RTABMAP_OPENCHISEL
125 _ui->label_openchisel->setText(
"Yes");
127 _ui->label_openchisel->setText(
"No");
129 #ifdef RTABMAP_ALICE_VISION
130 _ui->label_aliceVision->setText(
"Yes");
131 _ui->label_aliceVision_license->setEnabled(
true);
133 _ui->label_aliceVision->setText(
"No");
134 _ui->label_aliceVision_license->setEnabled(
false);
174 _ui->label_mrpt->setText(
"Yes");
175 _ui->label_mrpt_license->setEnabled(
true);
177 _ui->label_mrpt->setText(
"No");
178 _ui->label_mrpt_license->setEnabled(
false);
181 #ifdef RTABMAP_POINTMATCHER
182 _ui->label_libpointmatcher->setText(
"Yes");
183 _ui->label_libpointmatcher_license->setEnabled(
true);
185 _ui->label_libpointmatcher->setText(
"No");
186 _ui->label_libpointmatcher_license->setEnabled(
false);
189 #ifdef RTABMAP_CCCORELIB
190 _ui->label_cccorelib->setText(
"Yes");
191 _ui->label_cccorelib_license->setEnabled(
true);
193 _ui->label_cccorelib->setText(
"No");
194 _ui->label_cccorelib_license->setEnabled(
false);
197 #ifdef RTABMAP_OPEN3D
198 _ui->label_open3d->setText(
"Yes");
199 _ui->label_open3d_license->setEnabled(
true);
201 _ui->label_open3d->setText(
"No");
202 _ui->label_open3d_license->setEnabled(
false);
206 _ui->label_fovis->setText(
"Yes");
207 _ui->label_fovis_license->setEnabled(
true);
209 _ui->label_fovis->setText(
"No");
210 _ui->label_fovis_license->setEnabled(
false);
213 _ui->label_viso2->setText(
"Yes");
214 _ui->label_viso2_license->setEnabled(
true);
216 _ui->label_viso2->setText(
"No");
217 _ui->label_viso2_license->setEnabled(
false);
220 _ui->label_dvo->setText(
"Yes");
221 _ui->label_dvo_license->setEnabled(
true);
223 _ui->label_dvo->setText(
"No");
224 _ui->label_dvo_license->setEnabled(
false);
226 #ifdef RTABMAP_ORB_SLAM
227 #if RTABMAP_ORB_SLAM == 3
228 _ui->label_orbslam_title->setText(
"With ORB SLAM3 :");
229 #elif RTABMAP_ORB_SLAM == 2
230 _ui->label_orbslam_title->setText(
"With ORB SLAM2 :");
232 _ui->label_orbslam->setText(
"Yes");
233 _ui->label_orbslam_license->setEnabled(
true);
235 _ui->label_orbslam->setText(
"No");
236 _ui->label_orbslam_license->setEnabled(
false);
240 _ui->label_okvis->setText(
"Yes");
241 _ui->label_okvis_license->setEnabled(
true);
243 _ui->label_okvis->setText(
"No");
244 _ui->label_okvis_license->setEnabled(
false);
248 _ui->label_loam->setText(
"Yes");
249 _ui->label_loam_license->setEnabled(
true);
251 _ui->label_loam->setText(
"No");
252 _ui->label_loam_license->setEnabled(
false);
255 #ifdef RTABMAP_MSCKF_VIO
256 _ui->label_msckf->setText(
"Yes");
257 _ui->label_msckf_license->setEnabled(
true);
259 _ui->label_msckf->setText(
"No");
260 _ui->label_msckf_license->setEnabled(
false);
264 _ui->label_vins_fusion->setText(
"Yes");
265 _ui->label_vins_fusion_license->setEnabled(
true);
267 _ui->label_vins_fusion->setText(
"No");
268 _ui->label_vins_fusion_license->setEnabled(
false);
271 #ifdef RTABMAP_OPENVINS
272 _ui->label_openvins->setText(
"Yes");
273 _ui->label_openvins_license->setEnabled(
true);
275 _ui->label_openvins->setText(
"No");
276 _ui->label_openvins_license->setEnabled(
false);