INTRODUCTION Overview Download and Install Quick Start Documentation Publications NONFRAMEWORK CODE Driver Interfaces Drivers Libraries Utilities FRAMEWORK CODE Interfaces Components Libraries Utilities Full Software Listings DEVELOPER Tutorials Examples Dev Guide Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
velocitycontroldisplay.h00001 #ifndef VELOCITYCONTROL_DISPLAY_WIDGET_H 00002 #define VELOCITYCONTROL_DISPLAY_WIDGET_H 00003 00004 #include <QObject> 00005 #include <orcateleop/display.h> 00006 00007 class QTextEdit; 00008 class QSplitter; 00009 00010 namespace orcaqgui2d { 00011 00012 // 00013 // Class which sets up a text window displaying feedback of teleop commands 00014 // 00015 // @author Tobias Kaupp 00016 // 00017 class VelocityControlDisplay : public QObject, 00018 public orcateleop::Display 00019 { 00020 Q_OBJECT 00021 00022 public: 00023 VelocityControlDisplay( const std::string &platformName, 00024 QSplitter *spaceBottomRight=0 ); 00025 00026 virtual ~VelocityControlDisplay(); 00027 00028 // 00029 // Inherited from orcateleop::Display 00030 // These fcts will be called from the network thread, emit signals whose slots run in the main GUI thread 00031 // Both of these operations are thread-safe 00032 // 00033 00034 virtual void sentNewVelocityCommand( double vx, double vy, double w, bool vxLimit=false, bool vyLimit=false, bool wLimit=false ); 00035 00036 virtual void sentNewBicycleCommand( double speed, double steerAngle, bool speedLimit=false, bool steerAngleLimit=false ) {}; 00037 00038 virtual void sentRepeatCommand(); 00039 00040 virtual void failedToSendCommand( const std::string &errorMsg ); 00041 00042 00043 private: 00044 QTextEdit *display_; 00045 double vx_; 00046 double vy_; 00047 double w_; 00048 00049 signals: 00050 void newStringAvailable( const QString & ); 00051 00052 }; 00053 00054 } 00055 00056 #endif |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)