Revision c086ff3d

View differences:

include/humotion/client/middleware_ros.h
1
#pragma once
2
#include "middleware.h"
3
#ifdef ROS_SUPPORT
4
    #include "ros/ros.h"
5
#endif
6
#include <boost/shared_ptr.hpp>
7
/*
8
* This file is part of humotion
9
*
10
* Copyright(c) sschulz <AT> techfak.uni-bielefeld.de
11
* http://opensource.cit-ec.de/projects/humotion
12
*
13
* This file may be licensed under the terms of the
14
* GNU Lesser General Public License Version 3 (the ``LGPL''),
15
* or (at your option) any later version.
16
*
17
* Software distributed under the License is distributed
18
* on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either
19
* express or implied. See the LGPL for the specific language
20
* governing rights and limitations.
21
*
22
* You should have received a copy of the LGPL along with this
23
* program. If not, go to http://www.gnu.org/licenses/lgpl.html
24
* or write to the Free Software Foundation, Inc.,
25
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26
*
27
* The development of this software was supported by the
28
* Excellence Cluster EXC 277 Cognitive Interaction Technology.
29
* The Excellence Cluster EXC 277 is a grant of the Deutsche
30
* Forschungsgemeinschaft (DFG) in the context of the German
31
* Excellence Initiative.
32
*/
33
#include "ros/ros.h"
34

  
35
namespace humotion{
36
namespace client{
37

  
38
class MiddlewareROS : public Middleware{
39
public:
40
    MiddlewareROS(std::string name);
41
    ~MiddlewareROS();
42

  
43
    void send_mouth_target();
44
    void send_gaze_target();
45
    bool ok();
46
    void tick();
47

  
48

  
49
private:
50
    bool tick_necessary;
51
    //boost::shared_ptr<ros::NodeHandle> node_handle;
52
    ros::Publisher mouth_target_publisher;
53
    ros::Publisher gaze_target_publisher;
54
};
55

  
56
}
57
}
1
rsb support was dropped

Also available in: Unified diff