Closed jenadzitsiuk closed 3 months ago
By default RealSense2 driver will publish IMU data if the camera has one. If you are using the events-based example, you can enable IMU filtering on CameraThread
object to compute the quaternion:
cameraThread.enableIMUFiltering();
If you are using the no-events example, you can just reset the IMU data before sending it to the odometry for processing:
data.setIMU(IMU());
Thank you! The cameraThread.enableIMUFiltering()
in events example solved the issue!
In
rgbd_mapping
I get warnings like"Received IMU doesn't have orientation set! It is ignored"
This thread suggests that if the "Inter IMU" is off, then the warning goes away. And indeed, the main app (rtabmap) it works: with the box checked the warning is there. With the box unchecked it goes away.The issue is I cannot get rid of the warning in
rgbd_mapping
code sample. I added this code right after the camera was created:((CameraRealSense2*)camera)->publishInterIMU(false);
Seems that the other settings for the camera and Odometry is the same in the main
rtabmap
app and in "rgbd_mapping". How can I get rid of it and get the IMU orientation data?This is what I see in the camera init log for rgbd_mapping. Its exactly same as output in the main
rtabmap
app