Go to the documentation of this file.
31 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
32 #include <MemoryX/interface/core/EntityBase.h>
40 #include "../controller/Controller.h"
41 #include "../controller/Operation.h"
77 void init(
const memoryx::PriorKnowledgeInterfacePrx& priorKnowledgePrx,
78 const memoryx::WorkingMemoryInterfacePrx& workingMemoryPrx,
79 const std::string& workingMemoryUpdatesTopic,
80 const std::string& objectInstancesSegmentName,
81 const memoryx::LongtermMemoryInterfacePrx& longtermMemoryPrx,
109 std::vector<std::string>
loadSnapshot(
const std::string& snapshotName);
136 memoryx::LongtermMemoryInterfacePrx longtermMemoryPrx;
138 std::shared_ptr<PriorKnowledgeController> priorKnowledgeController;
144 const std::string LONGTERM_SNAPSHOT_PREFIX;
controller::ControllerPtr getController() const
Returns the main controller of this plugin.
void init(const memoryx::PriorKnowledgeInterfacePrx &priorKnowledgePrx, const memoryx::WorkingMemoryInterfacePrx &workingMemoryPrx, const std::string &workingMemoryUpdatesTopic, const std::string &objectInstancesSegmentName, const memoryx::LongtermMemoryInterfacePrx &longtermMemoryPrx, const controller::ControllerPtr &mainController)
Initialisates the MemoryXController.
IceInternal::Handle< WorkingMemoryController > getWorkingMemoryController() const
Returns a shared pointer to the WorkingMemoryController.
MemoryXController()
Constructor.
std::weak_ptr< Controller > ControllerWeakPtr
std::vector< std::string > getAllSnapshots()
Returns a list with the names of all existing snapshots.
The controller for the communication with the working memory.
std::shared_ptr< Controller > ControllerPtr
std::shared_ptr< PriorKnowledgeController > getPriorKnowlegdeController() const
Returns a shared pointer to the PriorKnowledgeController.
bool saveSceneInSnapshot(std::string &snapshotName)
Saves the whole content of the working memory in a snapshot with the given name.
~MemoryXController()
Destructor.
The controller for the communication with the priorknowledge.
bool saveObjectsInSnapshot(std::string &snapshotName, const std::vector< std::string > &objectIds)
Saves all object instances whose ids are given in a snapshot with the given name.
std::vector< std::string > loadSnapshot(const std::string &snapshotName)
Loads the content of the snapshot with the given name and add it to the current working memory.
std::shared_ptr< MemoryXController > MemoryXControllerPtr