Go to the documentation of this file.
27 #include <RobotAPI/gui-plugins/PlatformUnitPlugin/ui_PlatformUnitGuiPlugin.h>
33 #include <RobotAPI/interface/core/RobotLocalization.h>
34 #include <RobotAPI/interface/units/PlatformUnitInterface.h>
37 #include <QMainWindow>
52 setFocusPolicy(Qt::ClickFocus);
65 class PlatformUnitConfigDialog;
77 Q_PLUGIN_METADATA(IID
"ArmarXGuiInterface/1.00")
82 return "PlatformUnitGuiPlugin";
105 public GlobalRobotPoseLocalizationListener
120 void reportGlobalRobotPose(const ::armarx::TransformStamped& transformStamped, const ::Ice::Current& = ::Ice::emptyCurrent)
override;
125 return "RobotControl.PlatformUnitGUI";
129 return QIcon(
"://icons/retro_joystick2.svg");
150 Ui::PlatformUnitGuiPlugin
ui;
157 void controlTimerTick();
163 void controlPlatformWithKeyboard(
int key);
164 void stopPlatformWithKeyboard(
int key);
165 void keyboardVelocityControl();
168 std::string platformUnitProxyName;
169 std::string platformName;
171 PlatformUnitInterfacePrx platformUnitProxy;
173 QPointer<QWidget> __widget;
174 QPointer<PlatformUnitConfigDialog> dialog;
181 QPointer<JoystickControlWidget> speedCtrl;
186 QPointer<JoystickControlWidget> rotaCtrl;
191 QTimer ctrlEvaluationTimer;
192 QTimer stopPlatformTimer;
193 QTimer keyboardVelocityTimer;
212 static const int CONTROL_TICK_RATE = 50;
214 QSet<int> pressedKeys;
216 float currentKeyboardVelocityX = 0;
217 float currentKeyboardVelocityY = 0;
218 float currentKeyboardVelocityAlpha = 0;
219 float acceleration = 0.2;
220 float deceleration = 0.8;
const VariantTypeId Float
std::shared_ptr< PlatformUnitWidget > PlatformUnitGuiPluginPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.