1
0
mirror of https://gitlab.com/obbart/universal_robots_ros_driver.git synced 2026-04-12 11:00:47 +02:00

Factory and setup improvements

This commit is contained in:
Simon Rasmussen
2017-04-13 10:48:59 +02:00
parent 97add752a1
commit dd8169d371
4 changed files with 145 additions and 14 deletions

View File

@@ -9,6 +9,8 @@
#include "ur_modern_driver/ur/state_parser.h"
#include "ur_modern_driver/ur/stream.h"
static const int UR_PRIMARY_PORT = 30001;
class URFactory : private URMessagePacketConsumer
{
private:
@@ -42,7 +44,7 @@ private:
}
public:
URFactory(std::string& host) : stream_(host, 30001)
URFactory(std::string& host) : stream_(host, UR_PRIMARY_PORT)
{
URProducer<MessagePacket> prod(stream_, parser_);
std::vector<unique_ptr<MessagePacket>> results;