TimedTrajectory.h
Go to the documentation of this file.
1#ifndef TIMEDTRAJECTORY_H
2#define TIMEDTRAJECTORY_H
3
5
7
8namespace armarx
9{
10 /**
11 * @class TimedTrajectory
12 * @brief A container for a Trajectory and a set of timestamps, representing the arrival of the Trajectory at userPoints.
13 */
15 {
16 private:
17 //The Trajectory.
18 TrajectoryPtr trajectory;
19 //Mapped times of the Trajectory reaching userpoints.
20 std::vector<double> userPoints;
21
22 public:
23 /**
24 * @brief Creates a TimedTrajectory out of the supplied Trajectory and userpoints.
25 * @param trajectory The Trajectory to point to.
26 * @param userPoints The UserPoints.
27 * @return The set of userPoints.
28 */
29 TimedTrajectory(armarx::TrajectoryPtr trajectory, std::vector<double> userPoints);
30 /**
31 * @brief Returns the contained Trajectory.
32 * @return The contained Trajectory.
33 */
35 /**
36 * @brief Returns the userPoints.
37 * @return The set of userPoints.
38 */
39 std::vector<double> getUserPoints() const;
40 };
41} // namespace armarx
42#endif // TIMEDTRAJECTORY_H
TimedTrajectory(armarx::TrajectoryPtr trajectory, std::vector< double > userPoints)
Creates a TimedTrajectory out of the supplied Trajectory and userpoints.
std::vector< double > getUserPoints() const
Returns the userPoints.
const armarx::TrajectoryPtr getTrajectory() const
Returns the contained Trajectory.
This file offers overloads of toIce() and fromIce() functions for STL container types.
IceInternal::Handle< Trajectory > TrajectoryPtr
Definition Trajectory.h:52