Go to the documentation of this file.
9 #include "../frame_conversions.h"
16 const std::string prefix = propertyPrefix;
18 def->optional(p.
memoryName, prefix +
"MemoryName");
41 objReader.
connect(memoryNameSystem);
42 robotReader.
connect(memoryNameSystem);
45 std::map<std::string, armarx::navigation::location::arondto::Location>
53 std::map<std::string, armarx::navigation::location::arondto::Location>
ret;
54 res.memory.forEachEntity(
60 auto loc = i->dataAs<armarx::navigation::location::arondto::Location>();
61 ret[i->id().providerSegmentName +
"/" + i->id().entityName] = loc;
70 std::map<std::string, armarx::navigation::location::arondto::Location>
77 for (
auto& [locName, location] : locations)
82 location.framedPose.header.agent =
"";
86 for (
const auto& [objectInstanceId,
object] : objects)
std::map< std::string, armarx::navigation::location::arondto::Location > getAllLocations()
ReaderT::InputType T & ret
std::map< std::string, armarx::navigation::location::arondto::Location > getAllLocationsInGlobalFrame()
QueryResult getLatestSnapshotsIn(const MemoryID &id, armem::query::DataMode dataMode=armem::query::DataMode::WithData) const
Get the latest snapshots under the given memory ID.
std::map< std::string, objpose::ObjectPose > queryLatestObjectInstances(const ObjectID &classId)
virtual void registerPropertyDefinitions(::armarx::PropertyDefinitionsPtr &def)
const std::string GlobalFrame
Base class for all exceptions thrown by the armem library.
virtual void connect(armem::client::MemoryNameSystem &memoryNameSystem)
bool starts_with(const std::string &haystack, const std::string &needle)
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
void toGlobal(armarx::navigation::location::arondto::Location &framedLoc, const Eigen::Matrix4f &framedToGlobal)
Reader useReader(const MemoryID &memoryID)
Use a memory server and get a reader for it.
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
auto * findLatestInstance(int instanceIndex=0)
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
std::vector< description::RobotDescription > queryDescriptions(const armem::Time ×tamp) const
The memory name system (MNS) client.
Indicates that a query to the Memory Name System failed.
Client-side working memory entity.
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)