mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 18:10:47 +02:00
21 lines
510 B
C++
21 lines
510 B
C++
#pragma once
|
|
#include "ur_modern_driver/pipeline.h"
|
|
#include "ur_modern_driver/ur/stream.h"
|
|
#include "ur_modern_driver/packet.h"
|
|
#include "ur_modern_driver/parser.h"
|
|
|
|
class URProducer : public IProducer<Packet> {
|
|
private:
|
|
URStream &_stream;
|
|
Parser &_parser;
|
|
|
|
public:
|
|
URProducer(URStream &stream, Parser &parser)
|
|
: _stream(stream),
|
|
_parser(parser) { }
|
|
|
|
void setup_producer();
|
|
void teardown_producer();
|
|
void stop_producer();
|
|
std::unique_ptr<Packet> try_get();
|
|
}; |