Hi acp,
I am also trying to fuse IMU with odometry based on zed-mini. A few days ago, I happened to see this post
Fusion on zed and imu, but the map drifted immediately in the forum. Two most important things we should do. I make a note as follows:
1. To get a good fusion on between IMU and vo, the transform between the sensors should be very precise. You can use
kalibr tool to get this information and get more precise TF.
2. When using /camera/odom, you don't need to use visual_odometry node. rtabmap should be subscribed to /odometry/flltered if you want to use odometry output from IMU and /camera/odometry fusion, otherwise IMU is ignored if rtabmap is subscribed directly to /camera/odom.
These are my suggestion:
First of all, have you recalibration your camera/IMU to get a precise transform between the sensors?
Secondly, I don't know whether you subscribe the right nodes?
Cheer,
Williamc17
Cheers,
William