OdometryROS: refactored imu sync (#331). Using tf to compute baseline if Rtabmap/ImagesAlreadyRectified is true (for convenience with realsense rectified IR images but right camera info Tx not set)

This commit is contained in:
matlabbe
2020-07-30 12:43:44 -04:00
parent 0f7044f6ff
commit ae854dfb4c
10 changed files with 134 additions and 30 deletions
+1
View File
@@ -358,6 +358,7 @@ private:
float rate_;
bool createIntermediateNodes_;
int maxMappingNodes_;
bool alreadyRectifiedImages_;
ros::Time previousStamp_;
};
+2 -1
View File
@@ -227,7 +227,8 @@ bool convertStereoMsg(
cv::Mat & right,
rtabmap::StereoCameraModel & stereoModel,
tf::TransformListener & listener,
double waitForTransform);
double waitForTransform,
bool alreadyRectified);
bool convertScanMsg(
const sensor_msgs::LaserScan & scan2dMsg,
+1 -1
View File
@@ -141,7 +141,7 @@ private:
int odomStrategy_;
bool waitIMUToinit_;
bool imuProcessed_;
double lastImuReceivedStamp_;
std::map<double, rtabmap::IMU> imus_;
rtabmap::SensorData bufferedData_;
};