Go to the documentation of this file.
27 #include <ArmarXSimulation/gui-plugins/SimulatorControlGuiPlugin/ui_SimulatorControlGuiPlugin.h>
35 #include <QMainWindow>
37 #include <QSignalMapper>
40 #include <QTableWidgetItem>
44 #include <Inventor/nodes/SoNode.h>
45 #include <Inventor/nodes/SoSeparator.h>
46 #include <Inventor/sensors/SoTimerSensor.h>
47 #include <Inventor/nodes/SoEventCallback.h>
48 #include <Inventor/nodes/SoMatrixTransform.h>
49 #include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
50 #include <Inventor/Qt/SoQt.h>
53 #include <VirtualRobot/Robot.h>
54 #include <VirtualRobot/Nodes/RobotNode.h>
55 #include <VirtualRobot/RobotNodeSet.h>
56 #include <VirtualRobot/Visualization/VisualizationFactory.h>
57 #include <VirtualRobot/Visualization/CoinVisualization/CoinVisualization.h>
59 #include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
62 #include <unordered_map>
79 Q_PLUGIN_METADATA(IID
"ArmarXGuiInterface/1.00")
84 return "SimulatorControlGuiPlugin";
133 return "SimulatorControlGuiPlugin";
137 return QIcon {
"://icons/monitor_and_remote.svg"};
189 Ui::SimulatorControlGuiPlugin
ui;
197 void on_pushButtonManipRobSetPose_clicked();
200 void on_pushButtonManipRobotUpdate_clicked();
203 void on_pushButtonAddRobot_clicked();
206 std::string settings_simulatorPrxName;
207 std::string settings_simulatorViewerPrxName;
212 QTimer layerPollTimer;
216 QSignalMapper layerSignalMapperVisible;
220 QSignalMapper layerSignalMapperClear;
224 QSignalMapper layerSignalMapperRemove;
226 using LayerVisibilityCheckBoxesType = std::map<std::string, std::pair<QTableWidgetItem*, QPointer<QCheckBox>>>;
230 LayerVisibilityCheckBoxesType layerVisibilityCheckBoxes;
234 QPointer<QToolBar> customToolbar;
void layerToggleVisibility(QString layerName)
Toggles a layer's visibility.
Ui::SimulatorControlGuiPlugin ui
void reInit()
reInit Re-loads all simulator content.
void onConnectComponent() override
Pure virtual hook for the subclass.
void showContacts(bool enable)
QPointer< QWidget > getCustomTitlebarWidget(QWidget *parent) override
getTitleToolbar returns a pointer to the a toolbar widget of this controller.
SimulatorControlGuiPlugin()
QString getPluginName() override
void layerPoll()
Requests the current layer information from simulatorPrx and updates the table.
void onExitComponent() override
Hook for subclass.
SimulatorControlController()
SimulatorViewerControlInterfacePrx simulatorViewerPrx
SimulatorInterfacePrx simulatorPrx
std::shared_ptr< SimulatorControlGuiPlugin > SimulatorControlGuiPluginPtr
void antiAliasing(int steps)
void saveSettings(QSettings *settings) override
Implement to save the settings as part of the GUI configuration.
static QString GetWidgetName()
void onInitComponent() override
Pure virtual hook for the subclass.
void timerEvent(QTimerEvent *) override
timerEvent
virtual ~SimulatorControlController()
void showSimWindow(bool enable)
A widget to control a simulation.
static QIcon GetWidgetIcon()
void onDisconnectComponent() override
Hook for subclass.
This plugin offers a widget to control a simulation.
void showCoordSystem(bool enable)
void layerRemove(QString layerName)
Removes a layer.
void loadSettings(QSettings *settings) override
Implement to load the settings that are part of the GUI configuration.
void layerClear(QString layerName)
Clears a layer.
This file offers overloads of toIce() and fromIce() functions for STL container types.