mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
moved producer setup to pipeline initialization
This commit is contained in:
@@ -157,6 +157,7 @@ public:
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
running_ = true;
|
running_ = true;
|
||||||
|
producer_.setupProducer();
|
||||||
pThread_ = std::thread(&Pipeline::runProducer, this);
|
pThread_ = std::thread(&Pipeline::runProducer, this);
|
||||||
if (consumer_ != nullptr)
|
if (consumer_ != nullptr)
|
||||||
cThread_ = std::thread(&Pipeline::runConsumer, this);
|
cThread_ = std::thread(&Pipeline::runConsumer, this);
|
||||||
@@ -197,7 +198,6 @@ private:
|
|||||||
|
|
||||||
void runProducer()
|
void runProducer()
|
||||||
{
|
{
|
||||||
producer_.setupProducer();
|
|
||||||
std::vector<std::unique_ptr<_package_type>> products;
|
std::vector<std::unique_ptr<_package_type>> products;
|
||||||
while (running_)
|
while (running_)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user