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

ROSify output based on compiler flag

This commit is contained in:
Thomas Timm Andersen
2015-09-16 14:06:39 +02:00
parent fb95d2188d
commit 1b995a928b
7 changed files with 107 additions and 31 deletions

View File

@@ -30,6 +30,10 @@
#include <unistd.h>
#include <chrono>
#ifdef ROS_BUILD
#include <ros/ros.h>
#endif
class UrCommunication {
private:
int pri_sockfd_, sec_sockfd_;

View File

@@ -29,9 +29,12 @@
#include <iostream>
#include <unistd.h>
#ifdef ROS_BUILD
#include <ros/ros.h>
#endif
class UrRealtimeCommunication {
private:
const double SAMPLETIME_;
unsigned int safety_count_max_;
int sockfd_;
struct sockaddr_in serv_addr_;