MIRA
TrajectoryFamily.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) by
3  * MetraLabs GmbH (MLAB), GERMANY
4  * and
5  * Neuroinformatics and Cognitive Robotics Labs (NICR) at TU Ilmenau, GERMANY
6  * All rights reserved.
7  *
8  * Redistribution and modification of this code is strictly prohibited.
9  *
10  * IN NO EVENT SHALL "MLAB" OR "NICR" BE LIABLE TO ANY PARTY FOR DIRECT,
11  * INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF
12  * THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF "MLAB" OR
13  * "NICR" HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
14  *
15  * "MLAB" AND "NICR" SPECIFICALLY DISCLAIM ANY WARRANTIES, INCLUDING,
16  * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
17  * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
18  * ON AN "AS IS" BASIS, AND "MLAB" AND "NICR" HAVE NO OBLIGATION TO
19  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS OR MODIFICATIONS.
20  */
21 
30 #ifndef _MIRA_PILOT_TRAJECTORYFAMILY_H_
31 #define _MIRA_PILOT_TRAJECTORYFAMILY_H_
32 
33 #include <serialization/adapters/std/vector>
34 
35 #include <transform/Velocity.h>
36 
37 #include <pilot/Objective.h>
38 #include <robot/Trajectory.h>
39 
40 namespace mira { namespace pilot {
41 
43 
49 {
50 public:
51 
53 
54 public:
55 
56  template<typename Reflector>
57  void reflect(Reflector& r)
58  {
59  r.member("Trajectory", trajectory, "");
60  r.member("Costs", costs, "");
61  r.member("Permit", permit, "");
62  }
63 
64 public:
66 
67  double costs;
69 };
70 
71 typedef std::vector<TrajectoryInfo> TrajectoryFamily;
72 
74 
75 } } // namespace
76 
77 #endif
std::vector< PoseVelocityTrajectorySample, Eigen::aligned_allocator< PoseVelocityTrajectorySample > > PoseVelocityTrajectory
std::vector< TrajectoryInfo > TrajectoryFamily
Definition: TrajectoryFamily.h:71
void reflect(Reflector &r)
Definition: TrajectoryFamily.h:57
Objective::Permit permit
Definition: TrajectoryFamily.h:68
Information on a single trajectory such as the velocities (given as distances within the time interva...
Definition: TrajectoryFamily.h:48
Permit
Definition: Objective.h:57
TrajectoryInfo()
Definition: TrajectoryFamily.h:52
robot::PoseVelocityTrajectory trajectory
Definition: TrajectoryFamily.h:65
double costs
Definition: TrajectoryFamily.h:67
Description.