#include <GridMapPclConverter.hpp>
|
static bool | rayTriangleIntersect (const Eigen::Vector3f &point, const Eigen::Vector3f &ray, const Eigen::Matrix3f &triangleVertices, Eigen::Vector3f &intersectionPoint) |
|
Conversions between grid maps and PCL types.
Definition at line 31 of file GridMapPclConverter.hpp.
grid_map::GridMapPclConverter::GridMapPclConverter |
( |
| ) |
|
grid_map::GridMapPclConverter::~GridMapPclConverter |
( |
| ) |
|
|
virtual |
bool grid_map::GridMapPclConverter::addLayerFromPolygonMesh |
( |
const pcl::PolygonMesh & |
mesh, |
|
|
const std::string & |
layer, |
|
|
grid_map::GridMap & |
gridMap |
|
) |
| |
|
static |
Adds a layer with data from a polygon mesh. The mesh is ray traced from above (negative z-Direction).
- Parameters
-
[in] | mesh | the mesh to be added. It can only consist of triangles! |
[in] | layer | the layer that is filled with the mesh data. |
[out] | gridMap | the grid map to be populated. |
- Returns
- true if successful, false otherwise.
Definition at line 39 of file GridMapPclConverter.cpp.
bool grid_map::GridMapPclConverter::initializeFromPolygonMesh |
( |
const pcl::PolygonMesh & |
mesh, |
|
|
const double |
resolution, |
|
|
grid_map::GridMap & |
gridMap |
|
) |
| |
|
static |
Initializes the geometry of a grid map from a polygon mesh. This changes the geometry of the map and deletes all contents of the layers!
- Parameters
-
[in] | mesh | the mesh. |
[in] | resolution | the desired resolution of the grid map [m/cell]. |
[out] | gridMap | the grid map to be initialized. |
- Returns
- true if successful, false otherwise.
Definition at line 21 of file GridMapPclConverter.cpp.
bool grid_map::GridMapPclConverter::rayTriangleIntersect |
( |
const Eigen::Vector3f & |
point, |
|
|
const Eigen::Vector3f & |
ray, |
|
|
const Eigen::Matrix3f & |
triangleVertices, |
|
|
Eigen::Vector3f & |
intersectionPoint |
|
) |
| |
|
staticprivate |
The documentation for this class was generated from the following files: