NavMap
Toggle main menu visibility
Loading...
Searching...
No Matches
navmap_core
include
navmap_core
Descriptors.hpp
Go to the documentation of this file.
1
// Copyright 2026 Intelligent Robotics Lab
2
//
3
// This file is part of the project Easy Navigation (EasyNav in short)
4
// Licensed under the Apache License, Version 2.0 (the "License");
5
// you may not use this file except in compliance with the License.
6
// You may obtain a copy of the License at
7
//
8
// http://www.apache.org/licenses/LICENSE-2.0
9
//
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
15
23
24
#ifndef NAVMAP_CORE__DESCRIPTORS_HPP_
25
#define NAVMAP_CORE__DESCRIPTORS_HPP_
26
27
#include <limits>
28
#include <string>
29
30
#include "
navmap_core/NavMap.hpp
"
31
32
namespace
navmap
33
{
34
36
struct
DescriptorParams
37
{
38
bool
slope
{
true
};
39
bool
roughness
{
true
};
40
bool
step
{
true
};
41
bool
clearance
{
true
};
42
float
roughness_radius
{0.3f};
43
float
step_radius
{0.2f};
44
float
clearance_max
{10.0f};
45
};
46
55
void
compute_descriptors
(NavMap & nm,
const
DescriptorParams
& params = {});
56
57
}
// namespace navmap
58
59
#endif
// NAVMAP_CORE__DESCRIPTORS_HPP_
NavMap.hpp
Core container and data structures for EasyNav navigable meshes.
navmap
Definition
Combine.hpp:39
navmap::compute_descriptors
void compute_descriptors(NavMap &nm, const DescriptorParams ¶ms={})
Compute the selected descriptors as F32 layers of nm (created or overwritten).
Definition
Descriptors.cpp:29
DescriptorParams
Which descriptors to compute, and over which neighbourhoods.
Definition
Descriptors.hpp:37
navmap::DescriptorParams
Which descriptors to compute, and over which neighbourhoods.
Definition
Descriptors.hpp:37
navmap::DescriptorParams::roughness
bool roughness
"roughness": RMS distance to the plane fitted in a disc (m)
Definition
Descriptors.hpp:39
navmap::DescriptorParams::clearance
bool clearance
"clearance": free height to the next surface above (m)
Definition
Descriptors.hpp:41
navmap::DescriptorParams::clearance_max
float clearance_max
Beyond this, no surface above: +inf.
Definition
Descriptors.hpp:44
navmap::DescriptorParams::step
bool step
"step": height span of the vertices in a disc (m)
Definition
Descriptors.hpp:40
navmap::DescriptorParams::roughness_radius
float roughness_radius
Disc for the roughness plane fit (m).
Definition
Descriptors.hpp:42
navmap::DescriptorParams::slope
bool slope
"slope": angle of the NavCel normal to the vertical (deg)
Definition
Descriptors.hpp:38
navmap::DescriptorParams::step_radius
float step_radius
Disc for the step (m).
Definition
Descriptors.hpp:43
Generated by
1.18.0