33#include <RobotAPI/interface/core/RobotLocalization.h>
34#include <RobotAPI/interface/units/PlatformUnitInterface.h>
50 class PlatformUnitGuiPlugin;
62 setFocusPolicy(Qt::ClickFocus);
86 Q_PLUGIN_METADATA(IID
"ArmarXGuiInterface/1.00")
93 return "PlatformUnitGuiPlugin";
116 public GlobalRobotPoseLocalizationListener
132 const ::Ice::Current& = ::Ice::emptyCurrent)
override;
138 return "RobotControl.PlatformUnitGUI";
144 return QIcon(
"://icons/retro_joystick2.svg");
165 std::unique_ptr<Ui::PlatformUnitGuiPlugin>
ui;
172 void controlTimerTick();
178 void controlPlatformWithKeyboard(
int key);
179 void stopPlatformWithKeyboard(
int key);
180 void keyboardVelocityControl();
183 std::string platformUnitProxyName;
184 std::string platformName;
186 PlatformUnitInterfacePrx platformUnitProxy;
188 QPointer<QWidget> __widget;
189 QPointer<PlatformUnitConfigDialog> dialog;
196 QPointer<JoystickControlWidget> speedCtrl;
201 QPointer<JoystickControlWidget> rotaCtrl;
206 QTimer ctrlEvaluationTimer;
207 QTimer stopPlatformTimer;
208 QTimer keyboardVelocityTimer;
212 ::Ice::Float platformRotation;
222 ::Ice::Float platformRotationAtMoveStart;
227 static const int CONTROL_TICK_RATE = 50;
229 QSet<int> pressedKeys;
231 float currentKeyboardVelocityX = 0;
232 float currentKeyboardVelocityY = 0;
233 float currentKeyboardVelocityAlpha = 0;
234 float acceleration = 0.2;
235 float deceleration = 0.8;
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< PlatformUnitWidget > PlatformUnitGuiPluginPtr