27 #include <MemoryX/gui-plugins/PriorMemoryEditor/ui_PriorMemoryEditorPlugin.h>
35 #include <VirtualRobot/SceneObject.h>
36 #include <VirtualRobot/Visualization/VisualizationFactory.h>
37 #include <VirtualRobot/Visualization/CoinVisualization/CoinVisualization.h>
40 #include <MemoryX/interface/components/PriorKnowledgeInterface.h>
45 #include <QMainWindow>
50 #include <Inventor/nodes/SoNode.h>
51 #include <Inventor/nodes/SoSeparator.h>
52 #include <Inventor/sensors/SoTimerSensor.h>
53 #include <Inventor/nodes/SoEventCallback.h>
54 #include <Inventor/nodes/SoMatrixTransform.h>
55 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
56 #include <Inventor/Qt/SoQt.h>
60 class PriorEditorConfigDialog;
61 class CollectionCreateDialog;
73 Q_PLUGIN_METADATA(IID
"ArmarXGuiInterface/1.00")
138 return "MemoryX.PriorMemoryEditor";
142 return QIcon(
"://icons/database.svg");
146 return QIcon(
"://icons/database.svg");
186 Ui::PriorMemoryEditorPlugin
ui;
208 std::recursive_mutex mutexEntities;
210 CommonStorageInterfacePrx databasePrx;
211 PriorKnowledgeInterfacePrx memoryPrx;
212 PersistentObjectClassSegmentBasePrx classesSegmentPrx;
216 void doEditClass(
bool isNew);
218 VirtualRobot::ManipulationObjectPtr loadManipulationObjectFile(
const std::string& xmlFName);
219 VirtualRobot::ManipulationObjectPtr createManipulationObjectFromIvFiles(
const std::string& objName,
220 const std::string& ivFnameVis,
const std::string& ivFNameCollision);
224 const VirtualRobot::ManipulationObjectPtr mo);
226 const std::string& visuFName,
const std::string& collisionFName);
228 void findIVTextures(
const std::string& ivFName, NameList& textures);
231 std::string getSelectedClassId();
232 std::string getSelectedClassName();
234 std::string getFilesDBName();
236 void showObjectClassModel(
const std::string& objectId, VirtualRobot::SceneObject::VisualizationType visuType);
238 void refreshControls();
240 void setCurrentCollection(
const std::string& collNS);
241 void refreshCollectionList();
243 QPointer<PriorEditorConfigDialog> dialog;
244 QPointer<CollectionCreateDialog> collCreateDialog;
246 std::string settings_priorMemory;
247 std::string settings_mongoHost;
248 std::string settings_mongoUser;
249 std::string settings_mongoPass;
250 std::string settings_robotStateComponentProxyName;