PathFactory.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::ImportExport
17  * @author Liran Dattner
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 #ifndef PATHFACTORY_H
23 #define PATHFACTORY_H
24 
25 #include <Eigen/Core>
26 #include <VirtualRobot/TimeOptimalTrajectory/Path.h>
27 #include "../Model/DesignerTrajectory.h"
28 
29 namespace armarx
30 {
31  class PathFactory;
32  /**
33  * @class PathFactory
34  * @brief Creates a Simox VirtualRobot::Path from a set of nodes representing joint angles and a maximum deviation parameter.
35  */
37  {
38  public:
39  /**
40  * @brief Creates a Path out of the nodes with a maximum deviation.
41  * @param nodes The nodes the path goes through.
42  * @param maxDeviation The maximum deviation of the points along the path.
43  * @return The created path.
44  */
45  static VirtualRobot::Path createPath(std::vector<std::vector<double>>& nodes, double maxDeviation);
46  };
47 }
48 #endif // PATHFACTORY_H
49 
armarx::PathFactory
Creates a Simox VirtualRobot::Path from a set of nodes representing joint angles and a maximum deviat...
Definition: PathFactory.h:36
armarx::armem::server::ltm::detail::mixin::Path
std::filesystem::path Path
Definition: DiskStorageMixin.h:17
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::PathFactory::createPath
static VirtualRobot::Path createPath(std::vector< std::vector< double >> &nodes, double maxDeviation)
Creates a Path out of the nodes with a maximum deviation.
Definition: PathFactory.cpp:3