Main Page
Namespaces
Classes
Files
File List
File Members
include
katana
SpecifiedTrajectory.h
Go to the documentation of this file.
1
/*
2
* UOS-ROS packages - Robot Operating System code by the University of Osnabrück
3
* Copyright (C) 2010 University of Osnabrück
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
*
19
* SpecifiedTrajectory.h
20
*
21
* Created on: 12.12.2010
22
* Author: Martin Günther <mguenthe@uos.de>
23
*/
24
25
#ifndef SPECIFIEDTRAJECTORY_H_
26
#define SPECIFIEDTRAJECTORY_H_
27
28
namespace
katana
29
{
30
// coef[0] + coef[1]*t + coef[2]*t^2 + coef[3]*t^3
31
struct
Spline
32
{
33
std::vector<double>
coef
;
34
double
target_position
;
35
36
Spline
() :
37
coef(4, 0.0), target_position(0.0)
38
{
39
}
40
};
41
42
struct
Segment
43
{
44
double
start_time
;
45
double
duration
;
46
std::vector<Spline>
splines
;
47
};
48
typedef
std::vector<Segment>
SpecifiedTrajectory
;
49
50
}
51
52
#endif
/* SPECIFIEDTRAJECTORY_H_ */
katana
Definition:
AbstractKatana.h:37
katana::Segment::start_time
double start_time
Definition:
SpecifiedTrajectory.h:44
katana::Segment::duration
double duration
Definition:
SpecifiedTrajectory.h:45
katana::Spline::Spline
Spline()
Definition:
SpecifiedTrajectory.h:36
katana::SpecifiedTrajectory
std::vector< Segment > SpecifiedTrajectory
Definition:
SpecifiedTrajectory.h:48
katana::Spline
Definition:
SpecifiedTrajectory.h:31
katana::Spline::target_position
double target_position
Definition:
SpecifiedTrajectory.h:34
katana::Segment
Definition:
SpecifiedTrajectory.h:42
katana::Segment::splines
std::vector< Spline > splines
Definition:
SpecifiedTrajectory.h:46
katana::Spline::coef
std::vector< double > coef
Definition:
SpecifiedTrajectory.h:33
katana
Author(s): Martin Günther
autogenerated on Fri Jan 3 2020 04:01:25