From 8ebb6ff4847ce43432622adb4de16da0900cfe36 Mon Sep 17 00:00:00 2001 From: Guillaume Sarthou Date: Thu, 31 Oct 2024 17:05:17 +0100 Subject: [PATCH] [RosInterface] fix bad subscriber init --- src/interface/RosInterface.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interface/RosInterface.cpp b/src/interface/RosInterface.cpp index 6cb65b31..e1aa9c80 100644 --- a/src/interface/RosInterface.cpp +++ b/src/interface/RosInterface.cpp @@ -24,6 +24,7 @@ namespace ontologenius { RosInterface::RosInterface(const std::string& name) : onto_(new Ontology()), reasoners_(name), + subscriber_(name), feeder_echo_(getTopicName("insert_echo", name), getTopicName("insert_explanations", name)), #ifdef ONTO_TEST end_feed_(true), @@ -162,7 +163,6 @@ namespace ontologenius { periodic_reasoning_thread.join(); feed_thread.join(); - subscriber_.stop(); subscription_thread.join(); }