55 namespace mira {
namespace robot {
76 template<
typename Reflector>
79 r.member(
"Timestamp",
t,
"");
98 p(iP),
v(iV),
dt(iDT) {}
100 template<
typename Reflector>
103 r.member(
"Pose",
p,
"");
104 r.member(
"Velocity",
v,
"");
105 r.member(
"DeltaTime",
dt,
"");
118 typedef std::vector<PoseVelocityTrajectorySample, Eigen::aligned_allocator<PoseVelocityTrajectorySample>>
PoseVelocityTrajectory;
125 class PoseTrajectory :
public std::vector<PoseTrajectorySample<D>,Eigen::aligned_allocator<PoseTrajectorySample<D>>>
130 template<
typename Reflector>
140 Base::push_back(
Sample(t,p));
156 for(
iterator it=start; it!=this->end(); ++it) {
163 return find(t, this->begin());
float dt
Definition: Trajectory.h:111
void reflect(Reflector &r)
Definition: Trajectory.h:101
Time t
Definition: Trajectory.h:84
void reflect(Reflector &r)
Definition: Trajectory.h:77
std::vector< PoseVelocityTrajectorySample, Eigen::aligned_allocator< PoseVelocityTrajectorySample > > PoseVelocityTrajectory
A sampled trajectory, a collection of trajectory samples, each containing a pose and velocity at a de...
Definition: Trajectory.h:118
RigidTransform< float, D > Pose
Definition: Trajectory.h:67
A single sample of a sampled trajectory, containing a pose, velocity and a delta time.
Definition: Trajectory.h:91
PoseVelocityTrajectorySample(const Pose2 &iP, const Velocity2 &iV, float iDT)
Definition: Trajectory.h:97
#define MIRA_REFLECT_BASE(reflector, BaseClass)
PoseVelocityTrajectorySample()
Definition: Trajectory.h:95
Pose p
Definition: Trajectory.h:85
Pose2 p
Definition: Trajectory.h:109
iterator find(const Time &t)
Definition: Trajectory.h:162
Velocity2 v
Definition: Trajectory.h:110
std::vector< PoseTrajectorySample< D >, Eigen::aligned_allocator< PoseTrajectorySample< D > > > Base
Definition: Trajectory.h:128
void reflect(Reflector &r)
Definition: Trajectory.h:131
void push_back(const Sample &s)
Definition: Trajectory.h:144
PoseTrajectorySample< D > Sample
a single trajectory sample
Definition: Trajectory.h:136
RigidTransform< float, D > Pose
Definition: Trajectory.h:137
A sampled trajectory, a collection of trajectory samples, each containing a pose at a certain time...
Definition: Trajectory.h:125
iterator find(const Time &t, iterator start)
Finds the first item in the trajectory, whose timestamp is equal or older to the given timestamp...
Definition: Trajectory.h:155
PoseTrajectorySample(const Time &iT, const Pose &iP)
Definition: Trajectory.h:73
PoseTrajectory< 3 > PoseTrajectory3
Definition: Trajectory.h:168
Base::const_iterator const_iterator
Definition: Trajectory.h:149
PoseTrajectorySample()
Definition: Trajectory.h:71
Base::iterator iterator
Definition: Trajectory.h:148
void push_back(const Time &t, const Pose &p)
Definition: Trajectory.h:139
A single sample of a sampled trajectory, containing a pose and the time.
Definition: Trajectory.h:64
PoseTrajectory< 2 > PoseTrajectory2
Definition: Trajectory.h:167