MRPT  1.9.9
OccupancyGridCellType.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | https://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2019, Individual contributors, see AUTHORS file |
6  | See: https://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See: https://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 #pragma once
10 
11 #include <mrpt/config.h>
12 #include <cstdint>
13 #if ( \
14  !defined(OCCUPANCY_GRIDMAP_CELL_SIZE_8BITS) && \
15  !defined(OCCUPANCY_GRIDMAP_CELL_SIZE_16BITS)) || \
16  (defined(OCCUPANCY_GRIDMAP_CELL_SIZE_8BITS) && \
17  defined(OCCUPANCY_GRIDMAP_CELL_SIZE_16BITS))
18 #error One of OCCUPANCY_GRIDMAP_CELL_SIZE_16BITS or OCCUPANCY_GRIDMAP_CELL_SIZE_8BITS must be defined.
19 #endif
20 
21 namespace mrpt::maps
22 {
23 /** The type of the map cells. \ingroup mrpt_maps_grp */
24 #ifdef OCCUPANCY_GRIDMAP_CELL_SIZE_8BITS
25 struct OccGridCellTraits
26 {
27  using cellType = int8_t;
28  using cellTypeUnsigned = uint8_t;
29 };
30 #else
32 {
33  using cellType = int16_t;
34  using cellTypeUnsigned = uint16_t;
35 };
36 #endif
37 } // namespace mrpt::maps
The type of the map cells.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 45d659fbb Tue Dec 10 18:21:14 2019 +0100 at mar dic 10 18:30:09 CET 2019