Go to the documentation of this file.
14 #include <RobotAPI/libraries/armem_objects/aron/Attachment.aron.generated.h>
28 const std::string prefix = propertyPrefix;
30 def->optional(properties.memoryName, prefix +
"MemoryName");
32 def->optional(properties.coreSegmentName,
33 prefix +
"CoreSegment",
34 "Name of the memory core segment to use for object instances.");
41 ARMARX_IMPORTANT <<
"Reader: Waiting for memory '" << properties.memoryName <<
"' ...";
44 memoryReader = memoryNameSystem.
useReader(properties.memoryName);
45 ARMARX_IMPORTANT <<
"Reader: Connected to memory '" << properties.memoryName <<
"'";
54 std::optional<armem::grasping::arondto::KnownGraspInfo>
59 .getCoreSegment(properties.coreSegmentName);
64 if (instance ==
nullptr)
69 return armem::grasping::arondto::KnownGraspInfo::FromAron(instance->
data());
72 std::optional<armarx::armem::grasping::arondto::KnownGraspInfo>
91 if (not qResult.success)
102 if (
split.size() > 2)
104 ARMARX_INFO <<
"No grasp found for object entity " << entityName
105 <<
". Search for grasp without the index";
std::optional< armem::grasping::arondto::KnownGraspInfo > queryKnownGraspInfoByEntityName(const std::string &, const armem::Time &)
EntitySelector & entities()
Start specifying entities.
ReaderT::InputType T & ret
Client-side working entity instance.
QueryInput buildQueryInput() const
SnapshotSelector & snapshots()
Start specifying entity snapshots.
std::optional< armem::grasping::arondto::KnownGraspInfo > queryKnownGraspInfo(const armem::wm::Memory &memory, const armem::Time &)
Brief description of class memory.
CoreSegmentSelector & coreSegments()
Start specifying core segments.
Client-side working memory core segment.
CoreSegmentSelector & withName(const std::string &name) override
Client-side working memory.
Reader useReader(const MemoryID &memoryID)
Use a memory server and get a reader for it.
void registerPropertyDefinitions(armarx::PropertyDefinitionsPtr &def)
Represents a point in time.
EntitySelector & withName(const std::string &name) override
SnapshotSelector & beforeOrAtTime(Time timestamp)
The memory name system (MNS) client.
Indicates that a query to the Memory Name System failed.
The query::Builder class provides a fluent-style specification of hierarchical queries.
ProviderSegmentSelector & providerSegments()
Start specifying provider segments.
void connect(armem::client::MemoryNameSystem &memoryNameSystem)
const DataT & data() const
ProviderSegmentSelector & all() override
double s(double t, double s0, double v0, double a0, double j)
QueryResult query(const QueryInput &input) const
Perform a query.
std::vector< std::string > split(const std::string &source, const std::string &splitBy, bool trimElements=false, bool removeEmptyElements=false)