ArmarXObjectsToMemory Class Reference

#include <MemoryX/libraries/importers/ArmarXObjectsToMemory.h>

Public Member Functions

 ArmarXObjectsToMemory ()
 
void importObjectsToPriorKnowledge (std::vector< armarx::ObjectInfo > const &objectInfos, memoryx::GridFileManagerPtr const &gridFileManager, memoryx::PersistentObjectClassSegmentBasePrx const &objectClassesSegment, std::string const &mongoDbName) const
 
bool importObjectToWorkingMemory (const armarx::objects::SceneObject &object, memoryx::PersistentObjectClassSegmentBasePrx const &objectClassesSegment, memoryx::ObjectInstanceMemorySegmentBasePrx const &objectInstancesSegment, std::map< std::string, std::unordered_set< std::string >> &instancesPerClass) const
 
bool importObjectToWorkingMemory (std::string const &className, Eigen::Vector3f const &position, Eigen::Quaternionf const &quat, memoryx::PersistentObjectClassSegmentBasePrx const &objectClassesSegment, memoryx::ObjectInstanceMemorySegmentBasePrx const &objectInstancesSegment, std::map< std::string, std::unordered_set< std::string >> &instancesPerClass) const
 
bool importSceneAsSnapshot (const std::string &snapshotName, std::filesystem::path const &sceneJsonFile, memoryx::LongtermMemoryInterfacePrx const &longtermMemory, memoryx::WorkingMemoryInterfacePrx const &workingMemory, memoryx::PersistentObjectClassSegmentBasePrx const &objectClassesSegment, memoryx::ObjectInstanceMemorySegmentBasePrx const &objectInstancesSegment) const
 
void importScenesAsSnapshots (std::filesystem::path const &scenesDirectory, memoryx::LongtermMemoryInterfacePrx const &longtermMemory, memoryx::WorkingMemoryInterfacePrx const &workingMemory, memoryx::PersistentObjectClassSegmentBasePrx const &objectClassesSegment, const std::unordered_set< std::string > &scenes) const
 

Public Attributes

bool dryRun = false
 If true, don't actually change anything. More...
 

Detailed Description

Definition at line 40 of file ArmarXObjectsToMemory.h.

Constructor & Destructor Documentation

◆ ArmarXObjectsToMemory()

Definition at line 54 of file ArmarXObjectsToMemory.cpp.

Member Function Documentation

◆ importObjectsToPriorKnowledge()

void importObjectsToPriorKnowledge ( std::vector< armarx::ObjectInfo > const &  objectInfos,
memoryx::GridFileManagerPtr const &  gridFileManager,
memoryx::PersistentObjectClassSegmentBasePrx const &  objectClassesSegment,
std::string const &  mongoDbName 
) const

Definition at line 59 of file ArmarXObjectsToMemory.cpp.

+ Here is the caller graph for this function:

◆ importObjectToWorkingMemory() [1/2]

bool importObjectToWorkingMemory ( const armarx::objects::SceneObject object,
memoryx::PersistentObjectClassSegmentBasePrx const &  objectClassesSegment,
memoryx::ObjectInstanceMemorySegmentBasePrx const &  objectInstancesSegment,
std::map< std::string, std::unordered_set< std::string >> &  instancesPerClass 
) const
+ Here is the caller graph for this function:

◆ importObjectToWorkingMemory() [2/2]

bool importObjectToWorkingMemory ( std::string const &  className,
Eigen::Vector3f const &  position,
Eigen::Quaternionf const &  quat,
memoryx::PersistentObjectClassSegmentBasePrx const &  objectClassesSegment,
memoryx::ObjectInstanceMemorySegmentBasePrx const &  objectInstancesSegment,
std::map< std::string, std::unordered_set< std::string >> &  instancesPerClass 
) const

◆ importSceneAsSnapshot()

bool importSceneAsSnapshot ( const std::string &  snapshotName,
std::filesystem::path const &  sceneJsonFile,
memoryx::LongtermMemoryInterfacePrx const &  longtermMemory,
memoryx::WorkingMemoryInterfacePrx const &  workingMemory,
memoryx::PersistentObjectClassSegmentBasePrx const &  objectClassesSegment,
memoryx::ObjectInstanceMemorySegmentBasePrx const &  objectInstancesSegment 
) const

Definition at line 167 of file ArmarXObjectsToMemory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ importScenesAsSnapshots()

void importScenesAsSnapshots ( std::filesystem::path const &  scenesDirectory,
memoryx::LongtermMemoryInterfacePrx const &  longtermMemory,
memoryx::WorkingMemoryInterfacePrx const &  workingMemory,
memoryx::PersistentObjectClassSegmentBasePrx const &  objectClassesSegment,
const std::unordered_set< std::string > &  scenes 
) const

Definition at line 114 of file ArmarXObjectsToMemory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ dryRun

bool dryRun = false

If true, don't actually change anything.

Definition at line 92 of file ArmarXObjectsToMemory.h.


The documentation for this class was generated from the following files: