mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Implemented URStateParser, URRTStateParser and URProducer
This commit is contained in:
21
include/ur_modern_driver/ur/producer.h
Normal file
21
include/ur_modern_driver/ur/producer.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#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();
|
||||
};
|
||||
Reference in New Issue
Block a user