location.h
Go to the documentation of this file.
1
/**
2
* This file is part of ArmarX.
3
*
4
* ArmarX is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation.
7
*
8
* ArmarX is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*
16
* @author Fabian Reister ( fabian dot reister at kit dot edu )
17
* @date 2021
18
* @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19
* GNU General Public License
20
*/
21
22
#pragma once
23
24
25
#include <optional>
26
#include <string>
27
#include <vector>
28
29
#include <
RobotAPI/libraries/core/FramedPose.h
>
30
31
namespace
armarx::navigation::core
32
{
33
34
struct
Location
35
{
36
std::string
name
;
37
std::string
provider
;
38
armarx::FramedPose
framedPose
;
39
40
bool
matches
(
const
std::string&
name
,
41
const
std::optional<std::string>&
provider
)
const
noexcept
;
42
};
43
44
namespace
util
45
{
46
std::vector<core::Location>
47
findMatchingLocations
(
const
std::vector<core::Location>& locations,
48
const
std::string& locationName,
49
const
std::optional<std::string>& provider);
50
}
51
52
}
// namespace armarx::navigation::core
FramedPose.h
armarx::FramedPose
The FramedPose class.
Definition
FramedPose.h:281
armarx::navigation::core::util
Definition
location.h:45
armarx::navigation::core::util::findMatchingLocations
std::vector< core::Location > findMatchingLocations(const std::vector< core::Location > &locations, const std::string &locationName, const std::optional< std::string > &provider)
Definition
location.cpp:46
armarx::navigation::core
This file is part of ArmarX.
Definition
aron_conversions.cpp:22
armarx::navigation::core::Location
Definition
location.h:35
armarx::navigation::core::Location::provider
std::string provider
Definition
location.h:37
armarx::navigation::core::Location::framedPose
armarx::FramedPose framedPose
Definition
location.h:38
armarx::navigation::core::Location::matches
bool matches(const std::string &name, const std::optional< std::string > &provider) const noexcept
Definition
location.cpp:34
armarx::navigation::core::Location::name
std::string name
Definition
location.h:36
armarx
navigation
core
location.h
Generated by
1.13.2