-
Notifications
You must be signed in to change notification settings - Fork 82
/
JointTrajectory.hpp
81 lines (76 loc) · 3.14 KB
/
JointTrajectory.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef YOUBOT_JOINTTRAJECTORY_H
#define YOUBOT_JOINTTRAJECTORY_H
/****************************************************************
*
* Copyright (c) 2011
* All rights reserved.
*
* Hochschule Bonn-Rhein-Sieg
* University of Applied Sciences
* Computer Science Department
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Author:
* Jan Paulus, Nico Hochgeschwender, Michael Reckhaus, Azamat Shakhimardanov
* Supervised by:
* Gerhard K. Kraetzschmar
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* This sofware is published under a dual-license: GNU Lesser General Public
* License LGPL 2.1 and BSD license. The dual-license implies that users of this
* code may choose which terms they prefer.
*
* +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the Hochschule Bonn-Rhein-Sieg nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License LGPL as
* published by the Free Software Foundation, either version 2.1 of the
* License, or (at your option) any later version or the BSD license.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License LGPL and the BSD license for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License LGPL and BSD license along with this program.
*
****************************************************************/
#include "generic/Units.hpp"
#include "generic/Time.hpp"
#include "generic-joint/JointData.hpp"
namespace youbot {
///////////////////////////////////////////////////////////////////////////////
/// Joint Trajectory Segment
///////////////////////////////////////////////////////////////////////////////
struct TrajectorySegment
{
quantity<plane_angle> positions;
quantity<angular_velocity> velocities;
quantity<angular_acceleration> accelerations;
boost::posix_time::time_duration time_from_start;
};
///////////////////////////////////////////////////////////////////////////////
/// Joint Trajectory representation
///////////////////////////////////////////////////////////////////////////////
class JointTrajectory {
public:
std::vector< TrajectorySegment > segments;
boost::posix_time::ptime start_time;
};
} // namespace youbot
#endif