trajectory_files_manager_1.hpp
Go to the documentation of this file.
1 #ifndef RAM_UTILS_TRAJECTORY_FILES_MANAGER_1_HPP
2 #define RAM_UTILS_TRAJECTORY_FILES_MANAGER_1_HPP
3 
4 #include <Eigen/Geometry>
5 #include <fstream>
7 #include <string>
8 #include <vector>
9 #include <vtkPolyData.h>
10 #include <vtkPolygon.h>
11 #include <vtkSmartPointer.h>
12 #include <vtkVector.h>
13 
14 namespace ram_utils
15 {
16 typedef Eigen::Isometry3d Pose;
17 typedef std::vector<Eigen::Isometry3d> PosesPolygon;
18 typedef std::vector<PosesPolygon> PosesLayer;
19 typedef std::vector<PosesLayer> PosesTrajectory;
20 
21 typedef vtkSmartPointer<vtkPolyData> Polygon;
22 typedef std::vector<Polygon> Polygons;
23 typedef std::vector<Polygons> PolygonsVector;
24 
25 bool yamlFileToPolydata(const std::string yaml_file,
26  Polygon poly_data);
27 
35 bool yamlFileToPolydata2(const std::string yaml_file,
36  Polygon poly_data,
37  std::vector<unsigned> &layer_count);
38 
39 bool polydataToYamlFile(const std::string yaml_file,
40  const Polygon poly_data);
41 
42 bool polydataToYamlFile2(const std::string yaml_file,
43  const Polygon poly_data);
44 
45 void writeYAMLFile(const PosesTrajectory &trajectory,
46  const std::string file_name,
47  const bool no_linear = false,
48  const std::string header = "");
49 }
50 
51 #endif
std::vector< Polygon > Polygons
Eigen::Isometry3d Pose
bool yamlFileToPolydata(const std::string yaml_file, Polygon poly_data)
ram_msgs::AdditiveManufacturingTrajectory trajectory
bool polydataToYamlFile(const std::string yaml_file, const Polygon poly_data)
std::vector< Polygons > PolygonsVector
void writeYAMLFile(const PosesTrajectory &trajectory, const std::string file_name, const bool no_linear=false, const std::string header="")
bool yamlFileToPolydata2(const std::string yaml_file, Polygon poly_data, std::vector< unsigned > &layer_count)
std::vector< PosesPolygon > PosesLayer
vtkSmartPointer< vtkPolyData > Polygon
bool polydataToYamlFile2(const std::string yaml_file, const Polygon poly_data)
std::vector< PosesLayer > PosesTrajectory
std::vector< Eigen::Isometry3d > PosesPolygon


ram_utils
Author(s): Victor Lamoine - Institut Maupertuis
autogenerated on Mon Jun 10 2019 14:49:54