AboutDialog.cpp
Go to the documentation of this file.
1 /*
2 Copyright (c) 2010-2016, Mathieu Labbe - IntRoLab - Universite de Sherbrooke
3 All rights reserved.
4 
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
7  * Redistributions of source code must retain the above copyright
8  notice, this list of conditions and the following disclaimer.
9  * Redistributions in binary form must reproduce the above copyright
10  notice, this list of conditions and the following disclaimer in the
11  documentation and/or other materials provided with the distribution.
12  * Neither the name of the Universite de Sherbrooke nor the
13  names of its contributors may be used to endorse or promote products
14  derived from this software without specific prior written permission.
15 
16 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
20 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27 
32 #include "rtabmap/core/Optimizer.h"
33 #include "ui_aboutDialog.h"
34 #include <opencv2/core/version.hpp>
35 #include <pcl/pcl_config.h>
36 #include <vtkVersion.h>
37 
38 namespace rtabmap {
39 
40 AboutDialog::AboutDialog(QWidget * parent) :
41  QDialog(parent)
42 {
43  _ui = new Ui_aboutDialog();
44  _ui->setupUi(this);
45  QString version = Parameters::getVersion().c_str();
46 #if DEMO_BUILD
47  version.append(" [DEMO]");
48 #endif
49  QString cv_version = CV_VERSION;
50 #ifdef RTABMAP_NONFREE
51  cv_version.append(" [With nonfree]");
52  _ui->label_opencv_license->setText("Not Commercial");
53 #else
54  cv_version.append(" [Without nonfree]");
55  _ui->label_opencv_license->setText("BSD");
56 #endif
57  _ui->label_version->setText(version);
58  _ui->label_opencv_version->setText(cv_version);
59  _ui->label_pcl_version->setText(PCL_VERSION_PRETTY);
60  _ui->label_vtk_version->setText(vtkVersion::GetVTKVersion());
61  _ui->label_qt_version->setText(qVersion());
62 #ifdef RTABMAP_OCTOMAP
63  _ui->label_octomap->setText("Yes");
64  _ui->label_octomap_license->setEnabled(true);
65 #else
66  _ui->label_octomap->setText("No");
67  _ui->label_octomap_license->setEnabled(false);
68 #endif
69 #ifdef RTABMAP_CPUTSDF
70  _ui->label_cputsdf->setText("Yes");
71  _ui->label_cputsdf_license->setEnabled(true);
72 #else
73  _ui->label_cputsdf->setText("No");
74  _ui->label_cputsdf_license->setEnabled(false);
75 #endif
76 #ifdef RTABMAP_OPENCHISEL
77  _ui->label_openchisel->setText("Yes");
78 #else
79  _ui->label_openchisel->setText("No");
80 #endif
81 
82  _ui->label_freenect->setText(CameraFreenect::available()?"Yes":"No");
83  _ui->label_freenect_license->setEnabled(CameraFreenect::available());
84  _ui->label_openni2->setText(CameraOpenNI2::available()?"Yes":"No");
85  _ui->label_openni2_license->setEnabled(CameraOpenNI2::available());
86  _ui->label_freenect2->setText(CameraFreenect2::available()?"Yes":"No");
87  _ui->label_freenect2_license->setEnabled(CameraFreenect2::available());
88  _ui->label_realsense->setText(CameraRealSense::available() ? "Yes" : "No");
89  _ui->label_realsense_license->setEnabled(CameraRealSense::available());
90  _ui->label_realsense2->setText(CameraRealSense2::available() ? "Yes" : "No");
91  _ui->label_realsense2_license->setEnabled(CameraRealSense2::available());
92  _ui->label_dc1394->setText(CameraStereoDC1394::available()?"Yes":"No");
93  _ui->label_dc1394_license->setEnabled(CameraStereoDC1394::available());
94  _ui->label_flycapture2->setText(CameraStereoFlyCapture2::available()?"Yes":"No");
95  _ui->label_zed->setText(CameraStereoZed::available()?"Yes":"No");
96 
97  _ui->label_toro->setText(Optimizer::isAvailable(Optimizer::kTypeTORO)?"Yes":"No");
98  _ui->label_toro_license->setEnabled(Optimizer::isAvailable(Optimizer::kTypeTORO)?true:false);
99  _ui->label_g2o->setText(Optimizer::isAvailable(Optimizer::kTypeG2O)?"Yes":"No");
100  _ui->label_g2o_license->setEnabled(Optimizer::isAvailable(Optimizer::kTypeG2O)?true:false);
101  _ui->label_gtsam->setText(Optimizer::isAvailable(Optimizer::kTypeGTSAM)?"Yes":"No");
102  _ui->label_gtsam_license->setEnabled(Optimizer::isAvailable(Optimizer::kTypeGTSAM)?true:false);
103  _ui->label_cvsba->setText(Optimizer::isAvailable(Optimizer::kTypeCVSBA)?"Yes":"No");
104  _ui->label_cvsba_license->setEnabled(Optimizer::isAvailable(Optimizer::kTypeCVSBA)?true:false);
105 
106 #ifdef RTABMAP_POINTMATCHER
107  _ui->label_libpointmatcher->setText("Yes");
108  _ui->label_libpointmatcher_license->setEnabled(true);
109 #else
110  _ui->label_libpointmatcher->setText("No");
111  _ui->label_libpointmatcher_license->setEnabled(false);
112 #endif
113 
114 #ifdef RTABMAP_FOVIS
115  _ui->label_fovis->setText("Yes");
116  _ui->label_fovis_license->setEnabled(true);
117 #else
118  _ui->label_fovis->setText("No");
119  _ui->label_fovis_license->setEnabled(false);
120 #endif
121 #ifdef RTABMAP_VISO2
122  _ui->label_viso2->setText("Yes");
123  _ui->label_viso2_license->setEnabled(true);
124 #else
125  _ui->label_viso2->setText("No");
126  _ui->label_viso2_license->setEnabled(false);
127 #endif
128 #ifdef RTABMAP_DVO
129  _ui->label_dvo->setText("Yes");
130  _ui->label_dvo_license->setEnabled(true);
131 #else
132  _ui->label_dvo->setText("No");
133  _ui->label_dvo_license->setEnabled(false);
134 #endif
135 #ifdef RTABMAP_ORB_SLAM2
136  _ui->label_orbslam2->setText("Yes");
137  _ui->label_orbslam2_license->setEnabled(true);
138 #else
139  _ui->label_orbslam2->setText("No");
140  _ui->label_orbslam2_license->setEnabled(false);
141 #endif
142 
143 #ifdef RTABMAP_OKVIS
144  _ui->label_okvis->setText("Yes");
145  _ui->label_okvis_license->setEnabled(true);
146 #else
147  _ui->label_okvis->setText("No");
148  _ui->label_okvis_license->setEnabled(false);
149 #endif
150 
151 #ifdef RTABMAP_LOAM
152  _ui->label_loam->setText("Yes");
153  _ui->label_loam_license->setEnabled(true);
154 #else
155  _ui->label_loam->setText("No");
156  _ui->label_loam_license->setEnabled(false);
157 #endif
158 
159 #ifdef RTABMAP_MSCKF_VIO
160  _ui->label_msckf->setText("Yes");
161  _ui->label_msckf_license->setEnabled(true);
162 #else
163  _ui->label_msckf->setText("No");
164  _ui->label_msckf_license->setEnabled(false);
165 #endif
166 
167 }
168 
170 {
171  delete _ui;
172 }
173 
174 }
static std::string getVersion()
Definition: Parameters.cpp:74
Ui_aboutDialog * _ui
Definition: AboutDialog.h:50
static bool available()
Definition: CameraRGBD.cpp:382
AboutDialog(QWidget *parent=0)
Definition: AboutDialog.cpp:40
static bool isAvailable(Optimizer::Type type)
Definition: Optimizer.cpp:46


rtabmap
Author(s): Mathieu Labbe
autogenerated on Wed Jun 5 2019 22:41:30