From 8e701a2b8eec6967a05d0591c3b5ef8896da55e3 Mon Sep 17 00:00:00 2001 From: bpapaspyros Date: Fri, 4 Oct 2024 09:02:06 +0200 Subject: [PATCH] fix: rename variable to reflect actual purpose --- .../include/modulo_controllers/BaseControllerInterface.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/modulo_controllers/include/modulo_controllers/BaseControllerInterface.hpp b/source/modulo_controllers/include/modulo_controllers/BaseControllerInterface.hpp index f2d5d6d8..7f26b06f 100644 --- a/source/modulo_controllers/include/modulo_controllers/BaseControllerInterface.hpp +++ b/source/modulo_controllers/include/modulo_controllers/BaseControllerInterface.hpp @@ -609,10 +609,10 @@ inline void BaseControllerInterface::add_output(const std::string& name, const s if (!parsed_name.empty()) { outputs_.insert_or_assign(parsed_name, PublisherT()); custom_output_configuration_callables_.insert_or_assign( - name, [this](CustomPublishers& pub, const std::string& name) { + name, [this](CustomPublishers& pub, const std::string& topic) { std::shared_ptr> publisher = std::any_cast>>(pub.first); - publisher = get_node()->create_publisher(name, qos_); + publisher = get_node()->create_publisher(topic, qos_); realtime_tools::RealtimePublisherSharedPtr realtime_publisher = std::any_cast>(pub.second); realtime_publisher = std::make_shared>(publisher);