GridMapPclConverter.hpp
Go to the documentation of this file.
1 /*
2  * GridMapPclConverter.hpp
3  *
4  * Created on: Apr 14, 2016
5  * Author: Dominic Jud
6  * Institute: ETH Zurich, ANYbotics
7  */
8 
9 #pragma once
10 
12 
13 // PCL
14 #include <pcl/point_cloud.h>
15 #include <pcl/point_types.h>
16 #include <pcl/conversions.h>
17 #include <pcl/PolygonMesh.h>
18 #include <pcl/common/common.h>
19 
20 // STD
21 #include <iostream>
22 #include <vector>
23 #include <algorithm>
24 #include <cmath>
25 
26 namespace grid_map {
27 
32 {
33  public:
38 
42  virtual ~GridMapPclConverter();
43 
52  static bool initializeFromPolygonMesh(const pcl::PolygonMesh& mesh, const double resolution,
53  grid_map::GridMap& gridMap);
54 
63  static bool addLayerFromPolygonMesh(const pcl::PolygonMesh& mesh, const std::string& layer,
64  grid_map::GridMap& gridMap);
65 
66  private:
67  static bool rayTriangleIntersect(const Eigen::Vector3f& point,
68  const Eigen::Vector3f& ray,
69  const Eigen::Matrix3f& triangleVertices,
70  Eigen::Vector3f& intersectionPoint);
71 
72 };
73 
74 } /* namespace */
static bool rayTriangleIntersect(const Eigen::Vector3f &point, const Eigen::Vector3f &ray, const Eigen::Matrix3f &triangleVertices, Eigen::Vector3f &intersectionPoint)
static bool addLayerFromPolygonMesh(const pcl::PolygonMesh &mesh, const std::string &layer, grid_map::GridMap &gridMap)
static bool initializeFromPolygonMesh(const pcl::PolygonMesh &mesh, const double resolution, grid_map::GridMap &gridMap)


grid_map_pcl
Author(s): Dominic Jud
autogenerated on Tue Jun 25 2019 20:02:17