Updated for rtabmap 0.20.5. OdometryROS: Fixed odometry stamps slightly off when subscribing to IMU (causing exact sync problems on rtabmap/rtambapviz side).

This commit is contained in:
matlabbe
2020-10-12 21:20:32 -04:00
parent 10ed0109b8
commit c23dbbc249
6 changed files with 88 additions and 87 deletions
@@ -72,6 +72,7 @@ public:
int rgbdCameras() const {return isSubscribedToRGBD()?(int)rgbdSubs_.size():0;}
int getQueueSize() const {return queueSize_;}
bool isApproxSync() const {return approxSync_;}
const std::string & name() const {return name_;}
protected:
void setupCallbacks(
+1 -1
View File
@@ -142,7 +142,7 @@ private:
bool waitIMUToinit_;
bool imuProcessed_;
std::map<double, rtabmap::IMU> imus_;
rtabmap::SensorData bufferedData_;
std::pair<rtabmap::SensorData, ros::Time> bufferedData_;
};
}