mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Implemented abstract pipeline design
This commit is contained in:
23
src/pipeline.cpp
Normal file
23
src/pipeline.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#include "ur_modern_driver/queue/readerwriterqueue.h"
|
||||
|
||||
using namespace moodycamel;
|
||||
using namespace std;
|
||||
|
||||
class UR2ROSRelay {
|
||||
private:
|
||||
URReciever reciever;
|
||||
URParser parser;
|
||||
|
||||
BlockingReaderWriterQueue<unique_ptr<URMessage>> queue;
|
||||
|
||||
ROSConverter converter;
|
||||
ROSPublisher publisher;
|
||||
|
||||
|
||||
public:
|
||||
UR2ROSRelay(string &host, int port) : reciever{host, port} { }
|
||||
|
||||
void run() {
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user