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;
35 };
36 #endif
37 } // namespace mrpt::maps
unsigned __int16 uint16_t
Definition: rptypes.h:47
signed char int8_t
Definition: rptypes.h:43
unsigned char uint8_t
Definition: rptypes.h:44
__int16 int16_t
Definition: rptypes.h:46
The type of the map cells.



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019