mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-01 17:10:26 +08:00
Added RealSense SR300 camera support (#421)
This commit is contained in:
@@ -37,5 +37,6 @@
|
||||
<file>images/d415.png</file>
|
||||
<file>images/tara.png</file>
|
||||
<file>images/t265.png</file>
|
||||
<file>images/sr300.png</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -433,6 +433,7 @@ MainWindow::MainWindow(PreferencesDialog * prefDialog, QWidget * parent, bool sh
|
||||
connect(_ui->actionKinect_for_Windows_SDK_v2, SIGNAL(triggered()), this, SLOT(selectK4W2()));
|
||||
connect(_ui->actionRealSense_R200, SIGNAL(triggered()), this, SLOT(selectRealSense()));
|
||||
connect(_ui->actionRealSense_ZR300, SIGNAL(triggered()), this, SLOT(selectRealSense()));
|
||||
connect(_ui->actionRealSense2_SR300, SIGNAL(triggered()), this, SLOT(selectRealSense2()));
|
||||
connect(_ui->actionRealSense2_D415, SIGNAL(triggered()), this, SLOT(selectRealSense2()));
|
||||
connect(_ui->actionRealSense2_D435, SIGNAL(triggered()), this, SLOT(selectRealSense2()));
|
||||
connect(_ui->actionStereoDC1394, SIGNAL(triggered()), this, SLOT(selectStereoDC1394()));
|
||||
@@ -451,6 +452,7 @@ MainWindow::MainWindow(PreferencesDialog * prefDialog, QWidget * parent, bool sh
|
||||
_ui->actionKinect_for_Windows_SDK_v2->setEnabled(CameraK4W2::available());
|
||||
_ui->actionRealSense_R200->setEnabled(CameraRealSense::available());
|
||||
_ui->actionRealSense_ZR300->setEnabled(CameraRealSense::available());
|
||||
_ui->actionRealSense2_SR300->setEnabled(CameraRealSense2::available());
|
||||
_ui->actionRealSense2_D415->setEnabled(CameraRealSense2::available());
|
||||
_ui->actionRealSense2_D435->setEnabled(CameraRealSense2::available());
|
||||
_ui->actionRealSense2_T265->setEnabled(CameraRealSense2::available());
|
||||
@@ -4452,6 +4454,7 @@ void MainWindow::updateSelectSourceMenu()
|
||||
_ui->actionKinect_for_Windows_SDK_v2->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcK4W2);
|
||||
_ui->actionRealSense_R200->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcRealSense);
|
||||
_ui->actionRealSense_ZR300->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcRealSense);
|
||||
_ui->actionRealSense2_SR300->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcRealSense2);
|
||||
_ui->actionRealSense2_D415->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcRealSense2);
|
||||
_ui->actionRealSense2_D435->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcRealSense2);
|
||||
_ui->actionStereoDC1394->setChecked(_preferencesDialog->getSourceDriver() == PreferencesDialog::kSrcDC1394);
|
||||
|
||||
BIN
guilib/src/images/sr300.png
Normal file
BIN
guilib/src/images/sr300.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
@@ -174,7 +174,7 @@
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../GuiLib.qrc">
|
||||
<normaloff>:/images/d435.png</normaloff>:/images/d435.png</iconset>
|
||||
<normaloff>:/images/r200.png</normaloff>:/images/r200.png</iconset>
|
||||
</property>
|
||||
<addaction name="actionRealSense_R200"/>
|
||||
</widget>
|
||||
@@ -208,12 +208,23 @@
|
||||
</property>
|
||||
<addaction name="actionRealSense2_D415"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuRealSense_SR300">
|
||||
<property name="title">
|
||||
<string>RealSense SR300</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../GuiLib.qrc">
|
||||
<normaloff>:/images/sr300.png</normaloff>:/images/sr300.png</iconset>
|
||||
</property>
|
||||
<addaction name="actionRealSense2_SR300"/>
|
||||
</widget>
|
||||
<addaction name="menuKinect_for_Xbox_360"/>
|
||||
<addaction name="menuXtion_PRO_LIVE"/>
|
||||
<addaction name="menuSense_3D_scanner"/>
|
||||
<addaction name="menuKinect_v2"/>
|
||||
<addaction name="menuRealSense_R200"/>
|
||||
<addaction name="menuRealSense_ZR300"/>
|
||||
<addaction name="menuRealSense_SR300"/>
|
||||
<addaction name="menuRealSense_D415"/>
|
||||
<addaction name="menuRealSense_D435"/>
|
||||
</widget>
|
||||
@@ -1560,6 +1571,14 @@
|
||||
<string>RealSense2</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRealSense2_SR300">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>RealSense2</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
||||
Reference in New Issue
Block a user