26 #include <RobotAPI/interface/core/RobotState.h>
29 #include <MemoryX/interface/components/WorkingMemoryInterface.h>
30 #include <MemoryX/interface/components/LongtermMemoryInterface.h>
42 defineOptionalProperty<std::string>(
"TestToRun",
"UpdateNotifications",
"Name of test that should be executed");
43 defineOptionalProperty<std::string>(
"SnapshotName",
"",
"Name of WM snapshot to load (if TestToRun=SnapshotLoad)");
44 defineOptionalProperty<std::string>(
"CommonPlacesSnapshot",
"dataset1_1205",
"Name of secondary WM snapshot to load (if TestToRun=CommonPlaces)");
50 virtual public WorkingMemoryListenerInterface
60 getConfigIdentifier()));
66 return "WorkingMemoryExample";
68 void onInitComponent()
override;
69 void onConnectComponent()
override;
71 void reportEntityCreated(
const std::string& segmentName, const ::memoryx::EntityBasePtr& entity, const ::Ice::Current& = Ice::emptyCurrent)
override;
72 void reportEntityUpdated(
const std::string& segmentName, const ::memoryx::EntityBasePtr& entityOld, const ::memoryx::EntityBasePtr& entityNew, const ::Ice::Current& = Ice::emptyCurrent)
override;
73 void reportEntityRemoved(
const std::string& segmentName, const ::memoryx::EntityBasePtr& entity, const ::Ice::Current& = Ice::emptyCurrent)
override;
74 void reportSnapshotLoaded(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
override;
75 void reportSnapshotCompletelyLoaded(
const Ice::Current&
c = Ice::emptyCurrent)
override;
76 void reportMemoryCleared(
const std::string& segmentName, const ::Ice::Current& = Ice::emptyCurrent)
override;
79 WorkingMemoryInterfacePrx memoryPrx;
80 LongtermMemoryInterfacePrx longtermMemoryPrx;
82 std::string testToRun;
84 void testFileTransfer();
85 void testUpdateObserver();
86 void testObjectMovement();
88 void testCommonPlaces();