Path.cpp
Go to the documentation of this file.
1
#include "
Path.h
"
2
3
#include <vector>
4
5
namespace
armarx::navigation::components::laser_scanner_feature_extraction
6
{
7
8
std::vector<Path::Segment>
9
Path::segments
() const noexcept
10
{
11
if
(
points
.size() <= 1)
12
{
13
return
{};
14
}
15
16
std::vector<Segment>
segments
;
17
segments
.reserve(
static_cast<
int
>
(
points
.size()) - 1);
18
19
for
(
int
i = 0; i < static_cast<int>(
points
.size()) - 1; i++)
20
{
21
segments
.emplace_back(
points
.at(i),
points
.at(i + 1));
22
}
23
24
return
segments
;
25
}
26
}
// namespace armarx::navigation::components::laser_scanner_feature_extraction
Path.h
armarx::navigation::components::laser_scanner_feature_extraction::Path::points
std::vector< Eigen::Vector2f > points
Definition:
Path.h:12
armarx::navigation::components::laser_scanner_feature_extraction::Path::segments
std::vector< Segment > segments() const noexcept
Definition:
Path.cpp:9
armarx::navigation::components::laser_scanner_feature_extraction
Definition:
ArVizDrawer.cpp:28
armarx
navigation
components
laser_scanner_feature_extraction
Path.cpp
Generated on Sat Mar 29 2025 09:17:25 for armarx_documentation by
1.8.17