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:
@@ -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_;
|
||||
|
||||
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user