From 04096006d58ab407aa142b9a2a03f90a6045ebf0 Mon Sep 17 00:00:00 2001 From: Mateus Sanches Moura <msanches@iri.upc.edu> Date: Fri, 10 Jan 2025 09:34:27 +0100 Subject: [PATCH] Resolve "Make print() and check() functions from MapBase virtual" --- include/core/map/map_base.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/core/map/map_base.h b/include/core/map/map_base.h index 8b925bdb4..650621ecc 100644 --- a/include/core/map/map_base.h +++ b/include/core/map/map_base.h @@ -125,7 +125,7 @@ class MapBase : public NodeBase, public std::enable_shared_from_this<MapBase> bool state_blocks, std::ostream& stream, std::string _tabs = "") const; - void print(int depth, // + virtual void print(int depth, // bool factored_by, // bool metric, // bool state_blocks, @@ -133,7 +133,7 @@ class MapBase : public NodeBase, public std::enable_shared_from_this<MapBase> std::string _tabs = "") const; virtual CheckLog localCheck(bool _verbose, std::ostream& _stream, std::string _tabs = "") const; - bool check(CheckLog& _log, bool _verbose, std::ostream& _stream, std::string _tabs = "") const; + virtual bool check(CheckLog& _log, bool _verbose, std::ostream& _stream, std::string _tabs = "") const; }; inline LandmarkBaseConstPtrList MapBase::getLandmarkList() const -- GitLab