Zed-mini: added imu thread to publish async imu events at 200 Hz (to support VINS odometry).

This commit is contained in:
matlabbe
2019-10-13 17:40:09 -04:00
parent 1e298dcfa2
commit 981ac69c2c
5 changed files with 207 additions and 99 deletions

View File

@@ -40,6 +40,7 @@ class Camera;
namespace rtabmap
{
class ZedIMUThread;
class RTABMAP_EXP CameraStereoZed :
public Camera
@@ -76,6 +77,8 @@ public:
virtual std::string getSerial() const;
virtual bool odomProvided() const;
void publishInterIMU(bool enabled);
protected:
virtual SensorData captureImage(CameraInfo * info = 0);
@@ -95,6 +98,8 @@ private:
bool computeOdometry_;
bool lost_;
bool force3DoF_;
bool publishInterIMU_;
ZedIMUThread * imuPublishingThread_;
#endif
};