From a58dff6e6d6c6788bc4925f9693a42b98fa2a293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A9d=C3=A9ric=20Fourmy?= <mfourmy@laas.fr> Date: Wed, 25 Mar 2020 20:03:47 +0100 Subject: [PATCH] Added a function to manually set is_prior_set_ to true to retro engineer setPrior() --- include/core/problem/problem.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/core/problem/problem.h b/include/core/problem/problem.h index 470d9fe07..d8c0c92de 100644 --- a/include/core/problem/problem.h +++ b/include/core/problem/problem.h @@ -270,6 +270,7 @@ class Problem : public std::enable_shared_from_this<Problem> // Zero state provider Eigen::VectorXd zeroState ( ) const; bool priorIsSet() const; + void setPriorIsSet(bool _prior_is_set); // Map branch ----------------------------------------- MapBasePtr getMap() const; @@ -361,6 +362,11 @@ inline bool Problem::priorIsSet() const return prior_is_set_; } +inline void Problem::setPriorIsSet(bool _prior_is_set) +{ + prior_is_set_ = _prior_is_set; +} + inline IsMotionPtr Problem::getProcessorIsMotion() { if (!processor_is_motion_list_.empty()) -- GitLab