summaryrefslogtreecommitdiff
path: root/dev-ros/depthimage_to_laserscan/files
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/depthimage_to_laserscan/files')
-rw-r--r--dev-ros/depthimage_to_laserscan/files/isnan.patch13
-rw-r--r--dev-ros/depthimage_to_laserscan/files/pluginlib.patch11
2 files changed, 24 insertions, 0 deletions
diff --git a/dev-ros/depthimage_to_laserscan/files/isnan.patch b/dev-ros/depthimage_to_laserscan/files/isnan.patch
new file mode 100644
index 000000000000..11254904e945
--- /dev/null
+++ b/dev-ros/depthimage_to_laserscan/files/isnan.patch
@@ -0,0 +1,13 @@
+Index: depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
+===================================================================
+--- depthimage_to_laserscan-1.0.7.orig/src/DepthImageToLaserScan.cpp
++++ depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScan.cpp
+@@ -59,7 +59,7 @@ bool DepthImageToLaserScan::use_point(co
+
+ // Infs are preferable over NaNs (more information)
+ if(!new_finite && !old_finite){ // Both are not NaN or Inf.
+- if(!isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
++ if(!std::isnan(new_value)){ // new is not NaN, so use it's +-Inf value.
+ return true;
+ }
+ return false; // Do not replace old_value
diff --git a/dev-ros/depthimage_to_laserscan/files/pluginlib.patch b/dev-ros/depthimage_to_laserscan/files/pluginlib.patch
new file mode 100644
index 000000000000..a367cd40c5f6
--- /dev/null
+++ b/dev-ros/depthimage_to_laserscan/files/pluginlib.patch
@@ -0,0 +1,11 @@
+Index: depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScanNodelet.cpp
+===================================================================
+--- depthimage_to_laserscan-1.0.7.orig/src/DepthImageToLaserScanNodelet.cpp
++++ depthimage_to_laserscan-1.0.7/src/DepthImageToLaserScanNodelet.cpp
+@@ -57,5 +57,5 @@ private:
+ }
+
+ #include <pluginlib/class_list_macros.h>
+-PLUGINLIB_DECLARE_CLASS(depthimage_to_laserscan, DepthImageToLaserScanNodelet, depthimage_to_laserscan::DepthImageToLaserScanNodelet, nodelet::Nodelet);
++PLUGINLIB_EXPORT_CLASS(depthimage_to_laserscan::DepthImageToLaserScanNodelet, nodelet::Nodelet)
+