Go to the documentation of this file.
10 #include <RobotAPI/interface/armem/server/ReadingMemoryInterface.h>
11 #include <RobotAPI/interface/armem/server/RecordingMemoryInterface.h>
33 Reader(server::ReadingMemoryInterfacePrx readingMemory =
nullptr,
34 server::PredictingMemoryInterfacePrx predictingMemory =
nullptr);
41 armem::query::data::Result
query(
const armem::query::data::Input&
input)
const;
73 int recursionDepth = -1)
const;
77 armem::query::data::Result
query(
const armem::query::data::Input&
input,
79 int recursionDepth = -1)
const;
86 int recursionDepth = -1)
const;
92 int recursionDepth = -1)
const;
99 int recursionDepth = -1)
const;
127 std::optional<wm::EntitySnapshot>
170 server::dto::DirectlyStoreResult
186 std::vector<PredictionResult>
predict(
const std::vector<PredictionRequest>& requests)
const;
197 inline operator bool()
const
Reads data from a memory server.
QueryResult getLatestSnapshotsIn(const MemoryID &id, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get the latest snapshots under the given memory ID.
Client-side working entity instance.
void setPredictingMemory(server::PredictingMemoryInterfacePrx predictingMemory)
void stopRecording() const
@ WithData
Get structure and ARON data.
Reader(const Reader &)=default
Construct a memory reader.
This file is part of ArmarX.
server::PredictingMemoryInterfacePrx predictionPrx
QueryResult getAllLatestSnapshots(armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get all latest snapshots in the memory.
QueryResult queryMemoryIDs(const std::vector< MemoryID > &ids, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Query a specific set of memory IDs.
std::vector< PredictionResult > predict(const std::vector< PredictionRequest > &requests) const
Get a prediction for the state of multiple entity instances in the future.
server::dto::DirectlyStoreResult directlyStore(const server::dto::DirectlyStoreInput &input) const
ReaderT::InputType & input
QueryResult getAll(armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get the whole memory content.
Client-side working memory.
void startRecording() const
std::map< MemoryID, std::vector< PredictionEngine > > getAvailablePredictionEngines() const
Get the list of prediction engines supported by the memory.
void setReadingMemory(server::ReadingMemoryInterfacePrx readingMemory)
The memory name system (MNS) client.
The query::Builder class provides a fluent-style specification of hierarchical queries.
server::ReadingMemoryInterfacePrx readingPrx
std::optional< wm::EntitySnapshot > getLatestSnapshotIn(const MemoryID &id, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get the latest snapshot under the given memory ID.
QueryResult query(const QueryInput &input) const
Perform a query.
std::optional< wm::EntitySnapshot > getLatestSnapshotOf(const std::vector< MemoryID > &snapshotIDs) const
Query the given snapshot and return the latest existing snapshot.