From bfaf5c55255fe8e463421a350fdecd5af72ffe21 Mon Sep 17 00:00:00 2001 From: Daisuke Nishimatsu <42202095+wep21@users.noreply.github.com> Date: Wed, 17 Jan 2024 23:27:27 +0900 Subject: [PATCH] fix: change type for epsilon (#822) Signed-off-by: wep21 --- stereo_image_proc/src/stereo_image_proc/disparity_node.cpp | 2 +- stereo_image_proc/src/stereo_image_proc/point_cloud_node.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stereo_image_proc/src/stereo_image_proc/disparity_node.cpp b/stereo_image_proc/src/stereo_image_proc/disparity_node.cpp index f9f9207eb..d092fcc05 100644 --- a/stereo_image_proc/src/stereo_image_proc/disparity_node.cpp +++ b/stereo_image_proc/src/stereo_image_proc/disparity_node.cpp @@ -166,7 +166,7 @@ DisparityNode::DisparityNode(const rclcpp::NodeOptions & options) // Declare/read parameters int queue_size = this->declare_parameter("queue_size", 5); bool approx = this->declare_parameter("approximate_sync", false); - bool approx_sync_epsilon = this->declare_parameter("approximate_sync_tolerance_seconds", 0.0); + double approx_sync_epsilon = this->declare_parameter("approximate_sync_tolerance_seconds", 0.0); this->declare_parameter("use_system_default_qos", false); // Synchronize callbacks diff --git a/stereo_image_proc/src/stereo_image_proc/point_cloud_node.cpp b/stereo_image_proc/src/stereo_image_proc/point_cloud_node.cpp index 692db0882..ddbf752a0 100644 --- a/stereo_image_proc/src/stereo_image_proc/point_cloud_node.cpp +++ b/stereo_image_proc/src/stereo_image_proc/point_cloud_node.cpp @@ -110,7 +110,7 @@ PointCloudNode::PointCloudNode(const rclcpp::NodeOptions & options) // Declare/read parameters int queue_size = this->declare_parameter("queue_size", 5); bool approx = this->declare_parameter("approximate_sync", false); - bool approx_sync_epsilon = this->declare_parameter("approximate_sync_tolerance_seconds", 0.0); + double approx_sync_epsilon = this->declare_parameter("approximate_sync_tolerance_seconds", 0.0); this->declare_parameter("use_system_default_qos", false); rcl_interfaces::msg::ParameterDescriptor descriptor; // TODO(ivanpauno): Confirm if using point cloud padding in `sensor_msgs::msg::PointCloud2`