MRPT
2.0.4
mrpt
maps
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-2020, 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
31
struct
OccGridCellTraits
32
{
33
using
cellType
= int16_t;
34
using
cellTypeUnsigned
= uint16_t;
35
};
36
#endif
37
}
// namespace mrpt::maps
mrpt::maps::OccGridCellTraits::cellType
int16_t cellType
Definition:
OccupancyGridCellType.h:33
mrpt::maps::OccGridCellTraits::cellTypeUnsigned
uint16_t cellTypeUnsigned
Definition:
OccupancyGridCellType.h:34
mrpt::maps::OccGridCellTraits
The type of the map cells.
Definition:
OccupancyGridCellType.h:31
mrpt::maps
Definition:
CBeacon.h:21
Page generated by
Doxygen 1.8.17
for MRPT 2.0.4 at Sun Jul 19 15:15:43 UTC 2020