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