supereight
Loading...
Searching...
No Matches
type_util.hpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Smart Robotics Lab, Imperial College London, Technical University of Munich
3 * SPDX-FileCopyrightText: 2021 Nils Funk
4 * SPDX-FileCopyrightText: 2021 Sotiris Papatheodorou
5 * SPDX-License-Identifier: BSD-3-Clause
6 */
7
8#ifndef SE_TYPE_UTIL_HPP
9#define SE_TYPE_UTIL_HPP
10
11#include <Eigen/StdVector>
12#include <se/common/rgb.hpp>
13
14EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector2f)
15EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector3f)
16EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector2d)
17EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Vector3d)
18
19EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix2f)
20EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix3f)
21EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix4f)
22EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix2d)
23EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix3d)
24EIGEN_DEFINE_STL_VECTOR_SPECIALIZATION(Eigen::Matrix4d)
25
26namespace se {
27
43typedef uint64_t key_t;
46
47typedef unsigned int idx_t;
48
49typedef float field_t;
50
51typedef Eigen::Matrix<field_t, 3, 1> field_vec_t;
52
54
55typedef int timestamp_t;
56
57typedef RGB colour_t;
58
60
61} // namespace se
62
63#endif // SE_TYPE_UTIL_HPP
Definition image.hpp:19
Helper wrapper to allocate and de-allocate octants in the octree.
Definition bounded_vector.hpp:14
float field_t
The type of the stored field (e.g. TSDF, ESDF or occupancy)
Definition type_util.hpp:49
Eigen::Matrix< field_t, 3, 1 > field_vec_t
Definition type_util.hpp:51
int timestamp_t
The type of the time stamp.
Definition type_util.hpp:55
uint64_t code_t
The type of the Morton code.
Definition type_util.hpp:44
unsigned int idx_t
Child or voxel index type.
Definition type_util.hpp:47
RGB colour_t
The type of the colour.
Definition type_util.hpp:57
se::field_t weight_t
The type of the field type weight.
Definition type_util.hpp:53
uint8_t semantics_t
The type of the semantic class.
Definition type_util.hpp:59
uint64_t scale_t
The type of the scale in the morton code.
Definition type_util.hpp:45
uint64_t key_t
key = 1 bit buffer + 57 bits of morton code + 6 bits of scale information The maxium scale is limited...
Definition type_util.hpp:43
A colour represented as a Red-Green-Blue tuple with 8-bits per channel.
Definition rgb.hpp:18