17#include <RobotAPI/libraries/armem_objects/aron/Attachment.aron.generated.h>
19#include <RobotAPI/libraries/armem_robot_state/aron/Robot.aron.generated.h>
25 iceMemory(memoryToIceAdapter)
35 defs->optional(p.coreSegmentName,
36 prefix +
"CoreSegmentName",
37 "Name of the object instance core segment.");
38 defs->optional(p.maxHistorySize,
39 prefix +
"MaxHistorySize",
40 "Maximal size of object poses history (-1 for infinite).");
48 coreSegment = &iceMemory.workingMemory->addCoreSegment(p.coreSegmentName,
49 arondto::Robot::ToAronType());
50 coreSegment->setMaxHistorySize(p.maxHistorySize);
58 std::vector<armarx::armem::attachment::ObjectAttachment>
62 return coreSegment->doLocked(
65 std::vector<armarx::armem::attachment::ObjectAttachment>
attachments;
66 coreSegment->forEachEntity(
72 const auto aronAttachment =
75 if (not aronAttachment)
78 <<
"Could not convert entity instance to 'ObjectAttachment'";
void setTag(const LogTag &tag)
Helps connecting a Memory server to the Ice interface.
std::vector< armarx::armem::attachment::ObjectAttachment > getAttachments(const armem::Time ×tamp) const
Segment(server::MemoryToIceAdapter &iceMemory)
void defineProperties(armarx::PropertyDefinitionsPtr defs, const std::string &prefix="")
#define ARMARX_CHECK_NOT_NULL(ptr)
This macro evaluates whether ptr is not null and if it turns out to be false it will throw an Express...
#define ARMARX_DEBUG
The logging level for output that is only interesting while debugging.
#define ARMARX_WARNING
The logging level for unexpected behaviour, but not a serious problem.
armem::wm::EntityInstance EntityInstance
void fromAron(const arondto::MemoryID &dto, MemoryID &bo)
armarx::core::time::DateTime Time
std::optional< AronClass > tryCast(const wm::EntityInstance &item)
Tries to cast a armem::EntityInstance to AronClass.
IceUtil::Handle< class PropertyDefinitionContainer > PropertyDefinitionsPtr
PropertyDefinitions smart pointer type.
ObjectAttachment describes a fixed transformation between an agent and an object.
auto & getLatestSnapshot(int snapshotIndex=0)
Retrieve the latest entity snapshot.