Revision 414a3516 include/humotion/client/middleware_ros.h

View differences:

include/humotion/client/middleware_ros.h
30 30
* Forschungsgemeinschaft (DFG) in the context of the German
31 31
* Excellence Initiative.
32 32
*/
33
#include "ros/ros.h"
33 34

  
34 35
namespace humotion{
35 36
namespace client{
36 37

  
37 38
class MiddlewareROS : public Middleware{
38
#ifndef ROS_SUPPORT
39
public:
40
    MiddlewareROS(std::string name) : Middleware(name){
41
        printf("> ERROR: humotion was compiled without ROS middleware support. Please use MiddlewareRSB() instead!\n\n");
42
        exit(EXIT_FAILURE);
43
    }
44

  
45
    ~MiddlewareROS(){}
46
    void send_mouth_target(){};
47
    void send_gaze_target(){};
48
    bool ok(){ return false; }
49
    void tick(){}
50

  
51
#else
52 39
public:
53 40
    MiddlewareROS(std::string name);
54 41
    ~MiddlewareROS();
......
64 51
    //boost::shared_ptr<ros::NodeHandle> node_handle;
65 52
    ros::Publisher mouth_target_publisher;
66 53
    ros::Publisher gaze_target_publisher;
67
#endif
68 54
};
69 55

  
70 56
}

Also available in: Unified diff