From 420e04530fed9bf2e04c040e57ac5e3dd1bf7d02 Mon Sep 17 00:00:00 2001 From: Tristan Schnell Date: Thu, 11 Apr 2019 14:39:40 +0200 Subject: [PATCH] moved producer setup to pipeline initialization --- include/ur_rtde_driver/comm/pipeline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ur_rtde_driver/comm/pipeline.h b/include/ur_rtde_driver/comm/pipeline.h index c790022..315bf6a 100644 --- a/include/ur_rtde_driver/comm/pipeline.h +++ b/include/ur_rtde_driver/comm/pipeline.h @@ -157,6 +157,7 @@ public: return; running_ = true; + producer_.setupProducer(); pThread_ = std::thread(&Pipeline::runProducer, this); if (consumer_ != nullptr) cThread_ = std::thread(&Pipeline::runConsumer, this); @@ -197,7 +198,6 @@ private: void runProducer() { - producer_.setupProducer(); std::vector> products; while (running_) {