Go to the documentation of this file.
3 #include <SimoxUtility/algorithm/string/string_tools.h>
11 #include "../frame_conversions.h"
18 const std::string prefix = propertyPrefix;
20 def->optional(p.
memoryName, prefix +
"MemoryName");
43 objReader.
connect(memoryNameSystem);
44 robotReader.
connect(memoryNameSystem);
47 std::map<std::string, armarx::navigation::location::arondto::Location>
55 std::map<std::string, armarx::navigation::location::arondto::Location>
ret;
56 res.memory.forEachEntity(
62 auto loc = i->dataAs<armarx::navigation::location::arondto::Location>();
63 ret[i->id().providerSegmentName +
"/" + i->id().entityName] = loc;
72 std::map<std::string, armarx::navigation::location::arondto::Location>
79 for (
auto& [locName, location] : locations)
84 location.framedPose.header.agent =
"";
88 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)