2
* @file partial_movement.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 This is the main class from which all the different types of movement
28
#ifndef _PARTIAL_MOVEMENT_HPP_
29
#define _PARTIAL_MOVEMENT_HPP_
39
virtual ~PartialMovement();
42
* Returns a target for the given percentage.
44
* @param percentage must be between 0 and 1
46
* @return target from this movement.
48
double get_target(double percentage);
52
* A vector containing the steps for this movement, in percentage
53
* of the range. Contains -1 if no target for this point.
55
std::vector<double> steps;
59
/* For the emacs weenies in the crowd.