OccupancyGridHelper.h
Go to the documentation of this file.
1#pragma once
2
3#include <Eigen/Core>
4
6{
7 struct OccupancyGrid;
8}
9
10namespace armarx
11{
12 using armarx::armem::vision::OccupancyGrid;
13
14 namespace detail
15 {
17 {
18 float freespaceThreshold = 0.45F;
19 float occupiedThreshold = 0.55F;
20 };
21 } // namespace detail
22
24 {
25 public:
27
28 OccupancyGridHelper(const OccupancyGrid& occupancyGrid, const Params& params = Params());
29
30 using BinaryArray = Eigen::Array<bool, Eigen::Dynamic, Eigen::Dynamic>;
31
32 BinaryArray knownCells() const;
33 BinaryArray freespace() const;
34 BinaryArray obstacles() const;
35
36 private:
37 const OccupancyGrid& occupancyGrid;
38 const Params params;
39 };
40} // namespace armarx
OccupancyGridHelper(const OccupancyGrid &occupancyGrid, const Params &params=Params())
detail::OccupancyGridHelperParams Params
Eigen::Array< bool, Eigen::Dynamic, Eigen::Dynamic > BinaryArray
This file offers overloads of toIce() and fromIce() functions for STL container types.