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);
104 _ui->label_pdal->setText(
"Yes");
105 _ui->label_pdal_license->setEnabled(
true);
107 _ui->label_pdal->setText(
"No");
108 _ui->label_pdal_license->setEnabled(
false);
110 #ifdef RTABMAP_LIBLAS
111 _ui->label_liblas->setText(
"Yes");
112 _ui->label_liblas_license->setEnabled(
true);
114 _ui->label_liblas->setText(
"No");
115 _ui->label_liblas_license->setEnabled(
false);
117 #ifdef RTABMAP_CUDASIFT
118 _ui->label_cudasift->setText(
"Yes");
119 _ui->label_cudasift_license->setEnabled(
true);
121 _ui->label_cudasift->setText(
"No");
122 _ui->label_cudasift_license->setEnabled(
false);
124 #ifdef RTABMAP_OCTOMAP
125 _ui->label_octomap->setText(
"Yes");
126 _ui->label_octomap_license->setEnabled(
true);
128 _ui->label_octomap->setText(
"No");
129 _ui->label_octomap_license->setEnabled(
false);
131 #ifdef RTABMAP_GRIDMAP
132 _ui->label_gridmap->setText(
"Yes");
133 _ui->label_gridmap_license->setEnabled(
true);
135 _ui->label_gridmap->setText(
"No");
136 _ui->label_gridmap_license->setEnabled(
false);
138 #ifdef RTABMAP_CPUTSDF
139 _ui->label_cputsdf->setText(
"Yes");
140 _ui->label_cputsdf_license->setEnabled(
true);
142 _ui->label_cputsdf->setText(
"No");
143 _ui->label_cputsdf_license->setEnabled(
false);
145 #ifdef RTABMAP_OPENCHISEL
146 _ui->label_openchisel->setText(
"Yes");
148 _ui->label_openchisel->setText(
"No");
150 #ifdef RTABMAP_ALICE_VISION
151 _ui->label_aliceVision->setText(
"Yes");
152 _ui->label_aliceVision_license->setEnabled(
true);
154 _ui->label_aliceVision->setText(
"No");
155 _ui->label_aliceVision_license->setEnabled(
false);
195 _ui->label_mrpt->setText(
"Yes");
196 _ui->label_mrpt_license->setEnabled(
true);
198 _ui->label_mrpt->setText(
"No");
199 _ui->label_mrpt_license->setEnabled(
false);
202 #ifdef RTABMAP_POINTMATCHER
203 _ui->label_libpointmatcher->setText(
"Yes");
204 _ui->label_libpointmatcher_license->setEnabled(
true);
206 _ui->label_libpointmatcher->setText(
"No");
207 _ui->label_libpointmatcher_license->setEnabled(
false);
210 #ifdef RTABMAP_CCCORELIB
211 _ui->label_cccorelib->setText(
"Yes");
212 _ui->label_cccorelib_license->setEnabled(
true);
214 _ui->label_cccorelib->setText(
"No");
215 _ui->label_cccorelib_license->setEnabled(
false);
218 #ifdef RTABMAP_OPEN3D
219 _ui->label_open3d->setText(
"Yes");
220 _ui->label_open3d_license->setEnabled(
true);
222 _ui->label_open3d->setText(
"No");
223 _ui->label_open3d_license->setEnabled(
false);
227 _ui->label_fovis->setText(
"Yes");
228 _ui->label_fovis_license->setEnabled(
true);
230 _ui->label_fovis->setText(
"No");
231 _ui->label_fovis_license->setEnabled(
false);
234 _ui->label_viso2->setText(
"Yes");
235 _ui->label_viso2_license->setEnabled(
true);
237 _ui->label_viso2->setText(
"No");
238 _ui->label_viso2_license->setEnabled(
false);
241 _ui->label_dvo->setText(
"Yes");
242 _ui->label_dvo_license->setEnabled(
true);
244 _ui->label_dvo->setText(
"No");
245 _ui->label_dvo_license->setEnabled(
false);
247 #ifdef RTABMAP_ORB_SLAM
248 #if RTABMAP_ORB_SLAM == 3
249 _ui->label_orbslam_title->setText(
"With ORB SLAM3 :");
250 #elif RTABMAP_ORB_SLAM == 2
251 _ui->label_orbslam_title->setText(
"With ORB SLAM2 :");
253 _ui->label_orbslam->setText(
"Yes");
254 _ui->label_orbslam_license->setEnabled(
true);
256 _ui->label_orbslam->setText(
"No");
257 _ui->label_orbslam_license->setEnabled(
false);
261 _ui->label_okvis->setText(
"Yes");
262 _ui->label_okvis_license->setEnabled(
true);
264 _ui->label_okvis->setText(
"No");
265 _ui->label_okvis_license->setEnabled(
false);
269 _ui->label_loam->setText(
"Yes");
270 _ui->label_loam_license->setEnabled(
true);
272 _ui->label_loam->setText(
"No");
273 _ui->label_loam_license->setEnabled(
false);
276 #ifdef RTABMAP_MSCKF_VIO
277 _ui->label_msckf->setText(
"Yes");
278 _ui->label_msckf_license->setEnabled(
true);
280 _ui->label_msckf->setText(
"No");
281 _ui->label_msckf_license->setEnabled(
false);
285 _ui->label_vins_fusion->setText(
"Yes");
286 _ui->label_vins_fusion_license->setEnabled(
true);
288 _ui->label_vins_fusion->setText(
"No");
289 _ui->label_vins_fusion_license->setEnabled(
false);
292 #ifdef RTABMAP_OPENVINS
293 _ui->label_openvins->setText(
"Yes");
294 _ui->label_openvins_license->setEnabled(
true);
296 _ui->label_openvins->setText(
"No");
297 _ui->label_openvins_license->setEnabled(
false);