backward compatibility hydro

This commit is contained in:
matlabbe
2017-10-27 10:06:05 +02:00
parent 9846ddbfbc
commit d7db848dad
7 changed files with 29 additions and 16 deletions
+8
View File
@@ -134,7 +134,11 @@ void toCvCopy(const rtabmap_ros::RGBDImage & image, cv_bridge::CvImagePtr & rgb,
}
else if(!image.rgbCompressed.data.empty())
{
#ifdef CV_BRIDGE_HYDRO
ROS_ERROR("Unsupported compressed image copy, please upgrade at least to ROS Indigo to use this.");
#else
rgb = cv_bridge::toCvCopy(image.rgbCompressed);
#endif
}
else
{
@@ -170,7 +174,11 @@ void toCvShare(const rtabmap_ros::RGBDImageConstPtr & image, cv_bridge::CvImageC
}
else if(!image->rgbCompressed.data.empty())
{
#ifdef CV_BRIDGE_HYDRO
ROS_ERROR("Unsupported compressed image copy, please upgrade at least to ROS Indigo to use this.");
#else
rgb = cv_bridge::toCvCopy(image->rgbCompressed);
#endif
}
else
{
+4 -4
View File
@@ -58,9 +58,9 @@ public:
ICPOdometry() :
OdometryROS(false, false, true),
scanCloudMaxPoints_(0),
scanVoxelSize_(0.0f),
scanVoxelSize_(0.0),
scanNormalK_(0),
scanNormalRadius_(0.0f)
scanNormalRadius_(0.0)
{
}
@@ -260,9 +260,9 @@ private:
ros::Subscriber scan_sub_;
ros::Subscriber cloud_sub_;
int scanCloudMaxPoints_;
float scanVoxelSize_;
double scanVoxelSize_;
int scanNormalK_;
float scanNormalRadius_;
double scanNormalRadius_;
};
PLUGINLIB_EXPORT_CLASS(rtabmap_ros::ICPOdometry, nodelet::Nodelet);
+2 -2
View File
@@ -74,7 +74,7 @@ public:
noiseFilterRadius_(0.0),
noiseFilterMinNeighbors_(5),
normalK_(0),
normalRadius_(0.0f),
normalRadius_(0.0),
filterNaNs_(false),
approxSyncDepth_(0),
approxSyncDisparity_(0),
@@ -346,7 +346,7 @@ private:
double noiseFilterRadius_;
int noiseFilterMinNeighbors_;
int normalK_;
float normalRadius_;
double normalRadius_;
bool filterNaNs_;
std::vector<float> roiRatios_;
+2 -2
View File
@@ -76,7 +76,7 @@ public:
noiseFilterRadius_(0.0),
noiseFilterMinNeighbors_(5),
normalK_(0),
normalRadius_(0.0f),
normalRadius_(0.0),
filterNaNs_(false),
approxSyncDepth_(0),
approxSyncDisparity_(0),
@@ -497,7 +497,7 @@ private:
double noiseFilterRadius_;
int noiseFilterMinNeighbors_;
int normalK_;
float normalRadius_;
double normalRadius_;
bool filterNaNs_;
std::vector<float> roiRatios_;
rtabmap::ParametersMap stereoBMParameters_;
+4 -4
View File
@@ -74,9 +74,9 @@ public:
exactCloudSync_(0),
queueSize_(5),
scanCloudMaxPoints_(0),
scanVoxelSize_(0.0f),
scanVoxelSize_(0.0),
scanNormalK_(0),
scanNormalRadius_(0.0f)
scanNormalRadius_(0.0)
{
}
@@ -464,9 +464,9 @@ private:
message_filters::Synchronizer<MyExactCloudSyncPolicy> * exactCloudSync_;
int queueSize_;
int scanCloudMaxPoints_;
float scanVoxelSize_;
double scanVoxelSize_;
int scanNormalK_;
float scanNormalRadius_;
double scanNormalRadius_;
};
PLUGINLIB_EXPORT_CLASS(rtabmap_ros::RGBDICPOdometry, nodelet::Nodelet);