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/PolygonMesh.h>
15 #include <pcl/common/common.h>
16 #include <pcl/conversions.h>
17 #include <pcl/point_cloud.h>
18 #include <pcl/point_types.h>
19 
20 // STD
21 #include <algorithm>
22 #include <cmath>
23 #include <iostream>
24 #include <vector>
25 
26 namespace grid_map {
27 
32  public:
36  GridMapPclConverter() = default;
37 
41  virtual ~GridMapPclConverter() = default;
42 
51  static bool initializeFromPolygonMesh(const pcl::PolygonMesh& mesh, const double resolution, grid_map::GridMap& gridMap);
52 
61  static bool addLayerFromPolygonMesh(const pcl::PolygonMesh& mesh, const std::string& layer, grid_map::GridMap& gridMap);
62 
63  private:
64  static bool rayTriangleIntersect(const Eigen::Vector3f& point, const Eigen::Vector3f& ray, const Eigen::Matrix3f& triangleVertices,
65  Eigen::Vector3f& intersectionPoint);
66 };
67 
68 } /* namespace grid_map */
virtual ~GridMapPclConverter()=default
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 , Edo Jelavic
autogenerated on Tue Jun 1 2021 02:13:43