CameraRealSense2: added support for device id like D435, t265, L515, d435i, d415 for convenience (if we have multiple D435, we still need to use on of the serials shown in log info when starting the driver)

This commit is contained in:
matlabbe
2021-06-01 11:40:46 -04:00
parent c9dbe6205d
commit 12c46286f6
2 changed files with 7 additions and 6 deletions

View File

@@ -5979,7 +5979,7 @@ Camera * PreferencesDialog::createCamera(
else
{
camera = new CameraRealSense2(
device.toStdString(),
device.isEmpty()&&driver == kSrcStereoRealSense2?"T265":device.toStdString(),
this->getGeneralInputRate(),
this->getSourceLocalTransform());
((CameraRealSense2*)camera)->publishInterIMU(_ui->checkbox_publishInterIMU->isChecked());