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 
9 
12 #include <RobotAPI/libraries/armem_locations/aron/Location.aron.generated.h>
15 
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 
30  void connect(armem::client::MemoryNameSystem& memoryNameSystem);
31 
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>
41 
42  private:
43  Properties p;
44 
45  const std::string propertyPrefix = "mem.nav.location";
46 
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