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
30
32{
33
34 struct Location
35 {
36 std::string name;
37 std::string provider;
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
The FramedPose class.
Definition FramedPose.h:281
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
This file is part of ArmarX.
armarx::FramedPose framedPose
Definition location.h:38
bool matches(const std::string &name, const std::optional< std::string > &provider) const noexcept
Definition location.cpp:34