OccupancyGridHelper.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <Eigen/Core>
4 
5 namespace armarx::armem::vision
6 {
7  struct OccupancyGrid;
8 }
9 
10 namespace armarx
11 {
13 
14  namespace detail
15  {
17  {
18  float freespaceThreshold = 0.45F;
19  float occupiedThreshold = 0.55F;
20  };
21  }
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
armarx::armem::vision::OccupancyGrid
Definition: types.h:36
armarx::armem::vision
Definition: aron_conversions.cpp:13
detail
Definition: OpenCVUtil.cpp:127
armarx::OccupancyGridHelper
Definition: OccupancyGridHelper.h:23
armarx::OccupancyGridHelper::knownCells
BinaryArray knownCells() const
Definition: OccupancyGridHelper.cpp:13
armarx::OccupancyGridHelper::Params
detail::OccupancyGridHelperParams Params
Definition: OccupancyGridHelper.h:26
armarx::OccupancyGridHelper::freespace
BinaryArray freespace() const
Definition: OccupancyGridHelper.cpp:18
armarx::detail::OccupancyGridHelperParams
Definition: OccupancyGridHelper.h:16
armarx::OccupancyGridHelper::obstacles
BinaryArray obstacles() const
Definition: OccupancyGridHelper.cpp:31
armarx::OccupancyGridHelper::BinaryArray
Eigen::Array< bool, Eigen::Dynamic, Eigen::Dynamic > BinaryArray
Definition: OccupancyGridHelper.h:30
armarx::OccupancyGridHelper::OccupancyGridHelper
OccupancyGridHelper(const OccupancyGrid &occupancyGrid, const Params &params=Params())
Definition: OccupancyGridHelper.cpp:7
armarx::detail::OccupancyGridHelperParams::freespaceThreshold
float freespaceThreshold
Definition: OccupancyGridHelper.h:18
armarx::detail::OccupancyGridHelperParams::occupiedThreshold
float occupiedThreshold
Definition: OccupancyGridHelper.h:19
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28