Reader.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
#include <string>
25
#include <vector>
26
27
#include <
ArmarXCore/core/time/DateTime.h
>
28
29
#include <
RobotAPI/libraries/armem/client/query/Builder.h
>
30
#include <
RobotAPI/libraries/armem/client/util/SimpleReaderBase.h
>
31
32
#include <
armarx/navigation/memory/types.h
>
33
34
namespace
armarx::navigation::memory::client::laser_scanner_features
35
{
36
37
38
/**
39
* @defgroup Component-ExampleClient ExampleClient
40
* @ingroup RobotAPI-Components
41
* A description of the component ExampleClient.
42
*
43
* @class ExampleClient
44
* @ingroup Component-ExampleClient
45
* @brief Brief description of class ExampleClient.
46
*
47
* Detailed description of class ExampleClient.
48
*/
49
class
Reader
:
virtual
public
armarx::armem::client::util::SimpleReaderBase
50
{
51
public
:
52
using
armarx::armem::client::util::SimpleReaderBase::SimpleReaderBase
;
53
54
virtual
~Reader
();
55
56
struct
Query
57
{
58
std::string
providerName
;
59
60
std::string
name
;
// sensor name
61
62
armarx::core::time::DateTime
timestamp
;
63
64
// std::vector<std::string> sensorList;
65
};
66
67
struct
Result
68
{
69
std::vector<LaserScannerFeatures>
features
;
70
71
// std::vector<std::string> sensors;
72
73
enum
Status
74
{
75
Error
,
76
Success
77
}
status
;
78
79
std::string
errorMessage
;
80
};
81
82
Result
queryData
(
const
Query
& query)
const
;
83
84
protected
:
85
armarx::armem::client::query::Builder
buildQuery
(
const
Query
& query)
const
;
86
87
std::string
propertyPrefix
()
const override
;
88
Properties
defaultProperties
()
const override
;
89
};
90
91
}
// namespace armarx::navigation::memory::client::laser_scanner_features
DateTime.h
armarx::navigation::memory::client::laser_scanner_features::Reader::queryData
Result queryData(const Query &query) const
Definition:
Reader.cpp:130
armarx::navigation::memory::client::laser_scanner_features::Reader
Definition:
Reader.h:49
armarx::navigation::memory::client::laser_scanner_features::Reader::Query::providerName
std::string providerName
Definition:
Reader.h:58
armarx::navigation::memory::client::laser_scanner_features::Reader::Query::name
std::string name
Definition:
Reader.h:60
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::Success
@ Success
Definition:
Reader.h:76
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::errorMessage
std::string errorMessage
Definition:
Reader.h:79
armarx::navigation::memory::client::laser_scanner_features::Reader::defaultProperties
Properties defaultProperties() const override
Definition:
Reader.cpp:42
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::Status
Status
Definition:
Reader.h:73
armarx::navigation::memory::client::laser_scanner_features::Reader::propertyPrefix
std::string propertyPrefix() const override
Definition:
Reader.cpp:36
armarx::navigation::memory::client::laser_scanner_features::Reader::Query
Definition:
Reader.h:56
armarx::navigation::memory::client::laser_scanner_features::Reader::Query::timestamp
armarx::core::time::DateTime timestamp
Definition:
Reader.h:62
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::Error
@ Error
Definition:
Reader.h:75
armarx::navigation::memory::client::laser_scanner_features
Definition:
Reader.cpp:30
types.h
armarx::core::time::DateTime
Represents a point in time.
Definition:
DateTime.h:24
armarx::armem::client::util::SimpleReaderBase::Properties
Definition:
SimpleReaderBase.h:43
armarx::navigation::memory::client::laser_scanner_features::Reader::~Reader
virtual ~Reader()
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::features
std::vector< LaserScannerFeatures > features
Definition:
Reader.h:69
Builder.h
armarx::navigation::memory::client::laser_scanner_features::Reader::buildQuery
armarx::armem::client::query::Builder buildQuery(const Query &query) const
Definition:
Reader.cpp:49
armarx::armem::client::util::SimpleReaderBase::SimpleReaderBase
SimpleReaderBase()
Definition:
SimpleReaderBase.cpp:9
armarx::navigation::memory::client::laser_scanner_features::Reader::Result
Definition:
Reader.h:67
armarx::armem::client::query::Builder
The query::Builder class provides a fluent-style specification of hierarchical queries.
Definition:
Builder.h:22
armarx::navigation::memory::client::laser_scanner_features::Reader::Result::status
enum armarx::navigation::memory::client::laser_scanner_features::Reader::Result::Status status
SimpleReaderBase.h
armarx::armem::client::util::SimpleReaderBase
Definition:
SimpleReaderBase.h:38
armarx
navigation
memory
client
laser_scanner_features
Reader.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17