summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--control-box-rst.spec6
-rw-r--r--fix-jacobian-emplace-back.patch13
-rw-r--r--sources2
3 files changed, 19 insertions, 2 deletions
diff --git a/control-box-rst.spec b/control-box-rst.spec
index 067c1f7..454b429 100644
--- a/control-box-rst.spec
+++ b/control-box-rst.spec
@@ -4,11 +4,12 @@
Name: ros-%{ros_distro}-%{RosPkgName}
Version: 0.0.7
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: The control_box_rst package provides C++ libraries for predictive control, dire
License: GPLv3
URL: https://github.com/rst-tu-dortmund/control_box_rs/tree/foxy-devel
Source0: %{RosPkgName}-%{src_version}.tar.gz
+Patch0: fix-jacobian-emplace-back.patch
%global debug_package %{nil}
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
@@ -58,5 +59,8 @@ make install DESTDIR=%{buildroot}
/opt/ros/%{ros_distro}
%changelog
+* Tue Sep 29 2026 ai-importer <ai-importer@openeuler.org> - 0.0.7-2
+- Fix pushJacobian() C++17 branch: _values.emplace_back() -> _jacobians.emplace_back()
+
* Tue Sep 29 2026 ai-importer <ai-importer@openeuler.org> - 0.0.7-1
- Initial import (ROS batch)
diff --git a/fix-jacobian-emplace-back.patch b/fix-jacobian-emplace-back.patch
new file mode 100644
index 0000000..de9a612
--- /dev/null
+++ b/fix-jacobian-emplace-back.patch
@@ -0,0 +1,13 @@
+diff --git a/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h b/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h
+index d380ac5..58c3298 100644
+--- a/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h
++++ b/src/optimization/include/corbo-optimization/hyper_graph/edge_cache.h
+@@ -75,7 +75,7 @@ class EdgeCache
+ PRINT_DEBUG_COND_ONCE(_jacobians.size() >= _values.capacity(),
+ "EdgeCache::pushJacobian(): cache capacity reached; you might better reserve more space in advance.");
+ #if __cplusplus > 201402L
+- return _values.emplace_back();
++ return _jacobians.emplace_back();
+ #else
+ _jacobians.emplace_back(value_dim, param_dim);
+ return _jacobians.back();
diff --git a/sources b/sources
index 38647ec..45a351d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-3d397fc633fdc50f5d1a69d19523cb62 control-box-rst-0.0.7-1.tar.gz
+96027677303a35f4aff667b3ed7c0974 control-box-rst-0.0.7-1.tar.gz