summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-03-28 06:52:41 +0000
committerCoprDistGit <infra@openeuler.org>2026-03-28 06:52:41 +0000
commita90b0466b95cea8e1f77b4471bd9e5f5e21b1678 (patch)
tree4862060110c321a55df950163fc6050ec21d462b
parentcb575030036a6b3635ea6fb24121cf6ed96f81ab (diff)
automatic import of nav2-behaviors
-rw-r--r--nav2-behaviors.spec3
-rw-r--r--ros-humble-nav2-behaviors-1.1.20-fix-gcc12-error.patch12
2 files changed, 14 insertions, 1 deletions
diff --git a/nav2-behaviors.spec b/nav2-behaviors.spec
index 4f14094..26faa9a 100644
--- a/nav2-behaviors.spec
+++ b/nav2-behaviors.spec
@@ -16,6 +16,7 @@ Summary: TODO
License: Apache-2.0
Source0: %{RosPkgName}-%{version}.tar.gz
+Patch0: ros-humble-nav2-behaviors-1.1.20-fix-gcc12-error.patch
Requires: ros-%{ros_distro}-rclcpp
Requires: ros-%{ros_distro}-rclcpp-action
@@ -61,7 +62,7 @@ Provides: %{name}-runtime = %{version}-%{release}
TODO
%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-behaviors-1.1.20-fix-gcc12-error.patch b/ros-humble-nav2-behaviors-1.1.20-fix-gcc12-error.patch
new file mode 100644
index 0000000..622f9c8
--- /dev/null
+++ b/ros-humble-nav2-behaviors-1.1.20-fix-gcc12-error.patch
@@ -0,0 +1,12 @@
+diff -Naur nav2-behaviors-1.1.20_orig/src/behavior_server.cpp nav2-behaviors-1.1.20/src/behavior_server.cpp
+--- nav2-behaviors-1.1.20_orig/src/behavior_server.cpp 2024-01-01 00:00:00.000000000 +0800
++++ nav2-behaviors-1.1.20/src/behavior_server.cpp 2024-01-01 00:00:00.000000000 +0800
+@@ -77,7 +77,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);