summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-28 06:52:55 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-28 06:52:55 +0000
commit9e3b0746e49923d03ed7eef7283964681fe7d6ad (patch)
tree0f8e03fb5cf69e985ba6ea7b4288e070e5b77465
parentcfee31f5a23cd1f43428b1781592898d12b79589 (diff)
automatic import of nav2-smoother
-rw-r--r--nav2-smoother.spec3
-rw-r--r--ros-humble-nav2-smoother-1.1.20-fix-gcc12-error.patch12
2 files changed, 14 insertions, 1 deletions
diff --git a/nav2-smoother.spec b/nav2-smoother.spec
index 5b2610c..ddf1b4c 100644
--- a/nav2-smoother.spec
+++ b/nav2-smoother.spec
@@ -16,6 +16,7 @@ Summary: Smoother action interface
License: Apache-2.0
Source0: %{RosPkgName}-%{version}.tar.gz
+Patch0: ros-humble-nav2-smoother-1.1.20-fix-gcc12-error.patch
Requires: ros-%{ros_distro}-angles
Requires: ros-%{ros_distro}-rclcpp
@@ -60,7 +61,7 @@ Provides: %{name}-runtime = %{version}-%{release}
Smoother action interface
%prep
-%autosetup -c -n %{name}-%{version}
+%autosetup -c -n %{name}-%{version} -p1
%build
# Needed to bootstrap since the ros_workspace package does not yet exist.
diff --git a/ros-humble-nav2-smoother-1.1.20-fix-gcc12-error.patch b/ros-humble-nav2-smoother-1.1.20-fix-gcc12-error.patch
new file mode 100644
index 0000000..6e856ab
--- /dev/null
+++ b/ros-humble-nav2-smoother-1.1.20-fix-gcc12-error.patch
@@ -0,0 +1,12 @@
+diff -Naur nav2-smoother-1.1.20_orig/src/nav2_smoother.cpp nav2-smoother-1.1.20/src/nav2_smoother.cpp
+--- nav2-smoother-1.1.20_orig/src/nav2_smoother.cpp 2024-01-01 00:00:00.000000000 +0800
++++ nav2-smoother-1.1.20/src/nav2_smoother.cpp 2024-01-01 00:00:00.000000000 +0800
+@@ -85,7 +85,7 @@
+ transform_listener_ = std::make_shared<tf2_ros::TransformListener>(*tf_);
+
+ std::string costmap_topic, footprint_topic, robot_base_frame;
+- double transform_tolerance;
++ double transform_tolerance = 0.0;
+ this->get_parameter("costmap_topic", costmap_topic);
+ this->get_parameter("footprint_topic", footprint_topic);
+ this->get_parameter("transform_tolerance", transform_tolerance);