TimedTrajectoryFactory.h
Go to the documentation of this file.
1 #ifndef TIMEDTRAJECTORYFACTORY_H
2 #define TIMEDTRAJECTORYFACTORY_H
3 
4 #include <VirtualRobot/RobotNodeSet.h>
5 #include <VirtualRobot/TimeOptimalTrajectory/TimeOptimalTrajectory.h>
6 #include "TimedTrajectory.h"
7 
8 namespace armarx
9 {
10  class TimedTrajectoryFactory;
11  /**
12  * @class TimedTrajectoryFactory
13  * @brief Creates a TimedTrajectory out of a TimeOptimalTrajectory supplied by Simox methods.
14  */
16  {
17  public:
18  /**
19  * @brief Creates a TimedTrajectory out of the TimeOptimalTrajectory and maps the parameter userPoints to it.
20  * @param trajectory The nodes of the trajectory.
21  * @param userPoints The userPoints that have to be mapped.
22  * @param maxDeviation The maximum deviation with which the userPoints may vary from the input TimedTrajectory.
23  * @return A TimedTrajectory which contains the timestamps of the supplied userPoints.
24  */
25  static TimedTrajectory createTimedTrajectory(VirtualRobot::TimeOptimalTrajectory& trajectory, std::vector<std::vector<double>>& userPoints, VirtualRobot::RobotNodeSetPtr rns, double maxDeviation);
26  };
27 }
28 #endif // TIMEDTRAJECTORYFACTORY_H
TimedTrajectory.h
armarx::TimedTrajectoryFactory::createTimedTrajectory
static TimedTrajectory createTimedTrajectory(VirtualRobot::TimeOptimalTrajectory &trajectory, std::vector< std::vector< double >> &userPoints, VirtualRobot::RobotNodeSetPtr rns, double maxDeviation)
Creates a TimedTrajectory out of the TimeOptimalTrajectory and maps the parameter userPoints to it.
Definition: TimedTrajectoryFactory.cpp:9
armarx::TimedTrajectory
A container for a Trajectory and a set of timestamps, representing the arrival of the Trajectory at u...
Definition: TimedTrajectory.h:13
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::TimedTrajectoryFactory
Creates a TimedTrajectory out of a TimeOptimalTrajectory supplied by Simox methods.
Definition: TimedTrajectoryFactory.h:15