Reader.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <mutex>
4
#include <optional>
5
6
#include <Eigen/Core>
7
8
#include <
ArmarXCore/core/application/properties/PropertyDefinitionContainer.h
>
9
10
#include <
RobotAPI/libraries/armem/client/MemoryNameSystem.h
>
11
#include <
RobotAPI/libraries/armem/client/Reader.h
>
12
#include <RobotAPI/libraries/armem_locations/aron/Location.aron.generated.h>
13
#include <
RobotAPI/libraries/armem_objects/client/instance/ObjectReader.h
>
14
#include <
RobotAPI/libraries/armem_robot_state/client/common/RobotReader.h
>
15
16
namespace
armarx::armem::locations::client
17
{
18
class
Reader
19
{
20
public
:
21
struct
Properties
22
{
23
std::string
memoryName
=
"Navigation"
;
24
};
25
26
Reader
() =
default
;
27
virtual
~Reader
() =
default
;
28
29
void
registerPropertyDefinitions
(
armarx::PropertyDefinitionsPtr
& def);
30
void
connect
(
armem::client::MemoryNameSystem
& memoryNameSystem);
31
32
Properties
33
getProperties
()
34
{
35
return
this->p;
36
}
37
38
std::map<std::string, armarx::navigation::location::arondto::Location>
getAllLocations
();
39
std::map<std::string, armarx::navigation::location::arondto::Location>
40
getAllLocationsInGlobalFrame
();
41
42
private
:
43
Properties p;
44
45
const
std::string propertyPrefix =
"mem.nav.location"
;
46
47
armarx::armem::obj::instance::Reader
objReader;
48
armarx::armem::robot_state::RobotReader
robotReader;
49
50
armarx::armem::client::Reader
locationReader;
51
};
52
53
}
// namespace armarx::armem::locations::client
armarx::armem::locations::client::Reader::Properties
Definition:
Reader.h:21
armarx::armem::locations::client::Reader::getAllLocations
std::map< std::string, armarx::navigation::location::arondto::Location > getAllLocations()
Definition:
Reader.cpp:46
armarx::armem::client::Reader
Reads data from a memory server.
Definition:
Reader.h:24
Reader.h
armarx::armem::locations::client::Reader::getAllLocationsInGlobalFrame
std::map< std::string, armarx::navigation::location::arondto::Location > getAllLocationsInGlobalFrame()
Definition:
Reader.cpp:71
armarx::armem::locations::client::Reader::getProperties
Properties getProperties()
Definition:
Reader.h:33
armarx::armem::obj::instance::Reader
Definition:
ObjectReader.h:40
armarx::armem::locations::client::Reader::registerPropertyDefinitions
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
Definition:
Reader.cpp:14
armarx::armem::locations::client::Reader
Definition:
Reader.h:18
armarx::armem::locations::client
Definition:
Reader.cpp:11
armarx::armem::locations::client::Reader::Reader
Reader()=default
RobotReader.h
armarx::armem::robot_state::RobotReader
The RobotReader class.
Definition:
RobotReader.h:43
armarx::armem::locations::client::Reader::connect
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
Definition:
Reader.cpp:24
ObjectReader.h
PropertyDefinitionContainer.h
IceUtil::Handle< class PropertyDefinitionContainer >
armarx::armem::client::MemoryNameSystem
The memory name system (MNS) client.
Definition:
MemoryNameSystem.h:69
MemoryNameSystem.h
armarx::armem::locations::client::Reader::Properties::memoryName
std::string memoryName
Definition:
Reader.h:23
armarx::armem::locations::client::Reader::~Reader
virtual ~Reader()=default
RobotAPI
libraries
armem_locations
client
Reader.h
Generated on Sat Oct 12 2024 09:14:08 for armarx_documentation by
1.8.17