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

Added reconnect feature on RT port

This commit is contained in:
Thomas Timm Andersen
2015-09-24 15:36:54 +02:00
parent d5ea350145
commit 7c6080e89e
6 changed files with 118 additions and 26 deletions

View File

@@ -56,7 +56,8 @@ private:
std::mutex val_lock_; // Locks the variables while unpack parses data;
std::condition_variable* pMsg_cond_; //Signals that new vars are available
bool new_data_available_; //to avoid spurious wakes
bool data_published_; //to avoid spurious wakes
bool controller_updated_; //to avoid spurious wakes
std::vector<double> unpackVector(uint8_t * buf, int start_index,
int nr_of_vals);
@@ -94,11 +95,13 @@ public:
double getVMain();
double getVRobot();
double getIRobot();
bool getNewDataAvailable();
void setVersion(double ver);
void finishedReading();
void setDataPublished();
bool getDataPublished();
bool getControllerUpdated();
void setControllerUpdated();
std::vector<double> getVActual();
void unpack(uint8_t * buf);
};

View File

@@ -30,6 +30,8 @@
#include <unistd.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
#ifdef ROS_BUILD
#include <ros/ros.h>