35#include <ArmarXSimulation/gui-plugins/SimulatorControlGuiPlugin/ui_SimulatorControlGuiPlugin.h>
40#include <QSignalMapper>
42#include <QTableWidgetItem>
47#include <Inventor/Qt/SoQt.h>
48#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
49#include <Inventor/nodes/SoEventCallback.h>
50#include <Inventor/nodes/SoMatrixTransform.h>
51#include <Inventor/nodes/SoNode.h>
52#include <Inventor/nodes/SoSeparator.h>
53#include <Inventor/sensors/SoTimerSensor.h>
56#include <VirtualRobot/Nodes/RobotNode.h>
57#include <VirtualRobot/Robot.h>
58#include <VirtualRobot/RobotNodeSet.h>
59#include <VirtualRobot/Visualization/CoinVisualization/CoinVisualization.h>
60#include <VirtualRobot/Visualization/VisualizationFactory.h>
62#include <ArmarXSimulation/interface/simulator/SimulatorInterface.h>
66#include <unordered_map>
81 Q_PLUGIN_METADATA(IID
"ArmarXGuiInterface/1.00")
88 return "SimulatorControlGuiPlugin";
141 return "SimulatorControlGuiPlugin";
147 return QIcon{
"://icons/monitor_and_remote.svg"};
200 Ui::SimulatorControlGuiPlugin
ui;
208 void on_pushButtonManipRobSetPose_clicked();
211 void on_pushButtonManipRobotUpdate_clicked();
214 void on_pushButtonAddRobot_clicked();
217 std::string settings_simulatorPrxName;
218 std::string settings_simulatorViewerPrxName;
223 QTimer layerPollTimer;
227 QSignalMapper layerSignalMapperVisible;
231 QSignalMapper layerSignalMapperClear;
235 QSignalMapper layerSignalMapperRemove;
237 using LayerVisibilityCheckBoxesType =
238 std::map<std::string, std::pair<QTableWidgetItem*, QPointer<QCheckBox>>>;
242 LayerVisibilityCheckBoxesType layerVisibilityCheckBoxes;
246 QPointer<QToolBar> customToolbar;
void onInitComponent() override
Pure virtual hook for the subclass.
SimulatorViewerControlInterfacePrx simulatorViewerPrx
Ui::SimulatorControlGuiPlugin ui
SimulatorControlController()
QPointer< QWidget > getCustomTitlebarWidget(QWidget *parent) override
getTitleToolbar returns a pointer to the a toolbar widget of this controller.
void onDisconnectComponent() override
Hook for subclass.
void showContacts(bool enable)
void loadSettings(QSettings *settings) override
Implement to load the settings that are part of the GUI configuration.
void antiAliasing(int steps)
void saveSettings(QSettings *settings) override
Implement to save the settings as part of the GUI configuration.
SimulatorInterfacePrx simulatorPrx
void layerClear(QString layerName)
Clears a layer.
void layerPoll()
Requests the current layer information from simulatorPrx and updates the table.
void layerRemove(QString layerName)
Removes a layer.
virtual ~SimulatorControlController()
void reInit()
reInit Re-loads all simulator content.
void timerEvent(QTimerEvent *) override
timerEvent
void onConnectComponent() override
Pure virtual hook for the subclass.
void showCoordSystem(bool enable)
void layerToggleVisibility(QString layerName)
Toggles a layer's visibility.
static QString GetWidgetName()
void onExitComponent() override
Hook for subclass.
static QIcon GetWidgetIcon()
void showSimWindow(bool enable)
SimulatorControlGuiPlugin()
QString getPluginName() override
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< SimulatorControlGuiPlugin > SimulatorControlGuiPluginPtr