Classes | |
struct | CellHasher |
struct | make_from_state_fn |
Function object type to create a particle from a given state. More... | |
Functions | |
template<int NDim, typename Scalar = double> | |
NDTCell< NDim, Scalar > | fit_points (const std::vector< Eigen::Vector< Scalar, NDim >> &points) |
Fit a vector of points to an NDT cell, by computing its mean and covariance. More... | |
template<std::size_t N, std::size_t I> | |
constexpr std::size_t | floor_and_fibo_hash (double value) |
Returns the hashed and rotated floor of a value. More... | |
template<int NDim> | |
constexpr std::conditional_t< NDim==2, std::vector< Eigen::Vector2i >, std::vector< Eigen::Vector3i > > | get_default_neighbors_kernel () |
Helper to get the default neighbors kernel. More... | |
template<class T , std::size_t... Ids> | |
constexpr std::size_t | hash_impl (const T &value, const std::array< double, sizeof...(Ids)> &resolution, [[maybe_unused]] std::index_sequence< Ids... > index_sequence) |
template<int NDim, typename Scalar = double> | |
std::vector< NDTCell< NDim, Scalar > > | to_cells (const std::vector< Eigen::Vector< Scalar, NDim >> &points, const double resolution) |
template<class T , class... Args> | |
constexpr bool | tuple_index_found () noexcept |
Help method that returns true if a tuple element index that matches an input type is found. More... | |
template<class T , class... Args> | |
constexpr std::size_t | tuple_index_helper () noexcept |
Help method that finds a tuple element index that matches an input type. More... | |
Variables | |
constexpr double | kDefaultKldZ = 3. |
Default upper standard normal quantile, P = 0.999. More... | |
const std::vector< Eigen::Vector2i > | kDefaultNeighborKernel2d |
Default neighbor kernel for the 2D NDT sensor model. More... | |
const std::vector< Eigen::Vector3i > | kDefaultNeighborKernel3d |
Default neighbor kernel for the 3D NDT sensor model. More... | |
static constexpr std::size_t | kTupleIndexAmbiguous = static_cast<std::size_t>(-2) |
Constant value to return when there are multiple indices that match the input type. More... | |
static constexpr std::size_t | kTupleIndexNotFound = static_cast<std::size_t>(-1) |
Constant value to return when the index was not found. More... | |
|
inline |
Fit a vector of points to an NDT cell, by computing its mean and covariance.
Definition at line 60 of file ndt_sensor_model.hpp.
|
constexpr |
Returns the hashed and rotated floor of a value.
N | Number of bits to be used from the integer result, the least significant will be used. |
I | Result will be shifted by I*N. |
value | Input value to be hashed. |
Definition at line 45 of file spatial_hash.hpp.
|
constexpr |
Helper to get the default neighbors kernel.
Definition at line 135 of file ndt_sensor_model.hpp.
|
constexpr |
Hashes a tuple or array of scalar types, using a resolution for each element and using the same amount of bits for them.
T | Tuple or array of scalar types. |
...Ids | Indexes of the array/tuple to be used to calculate the hash. |
value | The array/tuple to be hashed. |
resolution | The resolution to be used. |
index_sequence | Unused, only to allow unpacking ...Ids . |
Definition at line 88 of file spatial_hash.hpp.
|
inline |
Given a number of N dimensional points and a resolution, constructs a vector of NDT cells, by clusterizing the points using 'resolution' and fitting a normal distribution to each of the resulting clusters if they contain a minimum number of points in them.
Definition at line 81 of file ndt_sensor_model.hpp.
|
constexprnoexcept |
Help method that returns true if a tuple element index that matches an input type is found.
Definition at line 124 of file tuple_traits.hpp.
|
constexprnoexcept |
Help method that finds a tuple element index that matches an input type.
Tuple types will be decayed before comparing, so tuple_index_helper<T, Args...> can find T&, const T& and other variants in the tuple types.
Definition at line 106 of file tuple_traits.hpp.
|
constexpr |
Default upper standard normal quantile, P = 0.999.
Definition at line 36 of file take_while_kld.hpp.
const std::vector<Eigen::Vector2i> beluga::detail::kDefaultNeighborKernel2d |
Default neighbor kernel for the 2D NDT sensor model.
Definition at line 107 of file ndt_sensor_model.hpp.
const std::vector<Eigen::Vector3i> beluga::detail::kDefaultNeighborKernel3d |
Default neighbor kernel for the 3D NDT sensor model.
Definition at line 120 of file ndt_sensor_model.hpp.
|
staticconstexpr |
Constant value to return when there are multiple indices that match the input type.
Definition at line 98 of file tuple_traits.hpp.
|
staticconstexpr |
Constant value to return when the index was not found.
Definition at line 95 of file tuple_traits.hpp.