diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-08 15:19:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-08 15:19:11 +0000 |
commit | aae23a89bdc7fa0c20a553dbc60c02b9be7f5ead (patch) | |
tree | 39aeff52221ec6d8726601586d8c4568912c7299 /ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch | |
parent | 8aabc671b049bf55a9e935db96a39165765de984 (diff) |
automatic import of ros-humble-nav2-constrained-smootheropeneuler24.03_LTS
Diffstat (limited to 'ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch')
-rw-r--r-- | ros-humble-nav2-constrained-smoother-1.1.9-fix-gcc12-compile-error.patch | 12 |
1 files changed, 12 insertions, 0 deletions
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<int>(path_optim.size()); i++) { + if (i == static_cast<int>(path_optim.size()) || optimized[i]) { + if (prelast_i != -1) { |