From 8ca9b7f551616d961e21141b681ffc299d3e9646 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Fri, 27 Mar 2026 08:44:13 +0000 Subject: automatic import of nav2-constrained-smoother --- ...-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch (limited to 'ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch') diff --git a/ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch b/ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch new file mode 100644 index 0000000..4742e57 --- /dev/null +++ b/ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch @@ -0,0 +1,12 @@ +diff -Naur ros-humble-nav2-constrained-smoother-1.1.9_org/include/nav2_constrained_smoother/smoother.hpp ros-humble-nav2-constrained-smoother-1.1.9/include/nav2_constrained_smoother/smoother.hpp +--- ros-humble-nav2-constrained-smoother-1.1.9_org/include/nav2_constrained_smoother/smoother.hpp 2023-09-11 19:06:58.704711382 +0800 ++++ ros-humble-nav2-constrained-smoother-1.1.9/include/nav2_constrained_smoother/smoother.hpp 2023-09-11 19:09:44.435139162 +0800 +@@ -292,7 +292,7 @@ + } + int last_i = 0; + int prelast_i = -1; +- Eigen::Vector2d prelast_dir; ++ Eigen::Vector2d prelast_dir(0.0, 0.0); + for (int i = 1; i <= static_cast(path_optim.size()); i++) { + if (i == static_cast(path_optim.size()) || optimized[i]) { + if (prelast_i != -1) { -- cgit v1.2.3