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