mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-03 10:00:23 +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();
|
||||
|
||||
Reference in New Issue
Block a user