2
* @file movement_publisher.hpp
3
* @author Ugo Cupcic <ugo@shadowrobot.com>
4
* @date Tue Sep 27 10:05:01 2011
7
* Copyright 2011 Shadow Robot Company Ltd.
9
* This program is free software: you can redistribute it and/or modify it
10
* under the terms of the GNU General Public License as published by the Free
11
* Software Foundation, either version 2 of the License, or (at your option)
14
* This program is distributed in the hope that it will be useful, but WITHOUT
15
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
19
* You should have received a copy of the GNU General Public License along
20
* with this program. If not, see <http://www.gnu.org/licenses/>.
22
* @brief Publishes a sequence of movements.
27
#ifndef _MOVEMENT_PUBLISHER_HPP_
28
#define _MOVEMENT_PUBLISHER_HPP_
31
#include <boost/thread.hpp>
33
#include "sr_movements/partial_movement.hpp"
37
class MovementPublisher
40
MovementPublisher( double min_value = 0.0, double max_value = 1.5,
42
virtual ~MovementPublisher();
47
void add_movement(PartialMovement mvt);
50
std::vector<PartialMovement> partial_movements;
51
ros::NodeHandle nh_tilde;
54
ros::Rate publishing_rate;
59
/* For the emacs weenies in the crowd.