mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 01:50:24 +08:00
Zed-mini: added imu thread to publish async imu events at 200 Hz (to support VINS odometry).
This commit is contained in:
@@ -804,7 +804,12 @@ void MainWindow::closeEvent(QCloseEvent* event)
|
||||
|
||||
bool MainWindow::handleEvent(UEvent* anEvent)
|
||||
{
|
||||
if(anEvent->getClassName().compare("RtabmapEvent") == 0)
|
||||
if(anEvent->getClassName().compare("IMUEvent") == 0)
|
||||
{
|
||||
// IMU events are published at high frequency, exit now
|
||||
return false;
|
||||
}
|
||||
else if(anEvent->getClassName().compare("RtabmapEvent") == 0)
|
||||
{
|
||||
RtabmapEvent * rtabmapEvent = (RtabmapEvent*)anEvent;
|
||||
Statistics stats = rtabmapEvent->getStats();
|
||||
|
||||
@@ -5594,6 +5594,7 @@ Camera * PreferencesDialog::createCamera(bool useRawImages, bool useColor)
|
||||
_ui->checkbox_stereoZed_selfCalibration->isChecked(),
|
||||
_ui->loopClosure_bowForce2D->isChecked());
|
||||
}
|
||||
((CameraStereoZed*)camera)->publishInterIMU(_ui->checkbox_publishInterIMU->isChecked());
|
||||
}
|
||||
else if(driver == kSrcUsbDevice)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user