MainWindow class. More...
#include </home/runner/work/yarp-documentation/yarp-documentation/yarp/src/guis/yarpbatterygui/display.h>
Public Slots | |
bool | getPartActivation (const char *szName) |
function that gets which parts are activated | |
void | onTabChangeItem (int) |
Called when a tab has been pressed. | |
void | viewModule (yarp::manager::Module *) |
Load the Module on the MainWindow. | |
void | viewResource (yarp::manager::Computer *res) |
Load the Resource on the MainWindow. | |
void | viewApplication (yarp::manager::Application *app, bool editingMode) |
Load the Application on the MainWindow. | |
void | onRemoveApplication (QString, QString) |
void | onRemoveModule (QString) |
void | onRemoveResource (QString) |
void | onReopenApplication (QString, QString) |
void | onReopenModule (QString, QString) |
void | onReopenResource (QString, QString) |
void | onApplicationSelectionChanged () |
Signals | |
void | internalQuit () |
void | internalLoad (QString) |
void | internalPlay () |
void | internalPause () |
void | internalStop () |
void | internalStep (yarp::os::Bottle *reply) |
void | internalSetFrame (const int frameNum) |
void | internalGetFrame (const std::string &name, int *frame) |
void | internalGetSliderPercentage (int *percentage) |
void | selectItem (QString, bool) |
void | sig_enableControlVelocity (bool) |
void | sig_enableControlMixed (bool) |
void | sig_enableControlPositionDirect (bool) |
void | sig_enableControlPWM (bool) |
void | sig_enableControlCurrent (bool) |
void | sig_viewSpeedValues (bool) |
void | sig_viewCurrentValues (bool) |
void | sig_viewMotorPositions (bool) |
void | sig_viewDutyCycles (bool) |
void | sig_setPosSliderOptionMW (int, double, int) |
void | sig_setVelSliderOptionMW (int, double) |
void | sig_setTrqSliderOptionMW (int, double) |
void | sig_viewPositionTargetBox (bool) |
void | sig_viewPositionTargetValue (bool) |
void | sig_internalClose () |
Public Member Functions | |
MainWindow (const yarp::os::ResourceFinder &rf, yarp::dev::IBattery *ibat, QWidget *parent=0, double refresh_period=10.0) | |
~MainWindow () | |
MainWindow (yarp::os::ResourceFinder &rf, QWidget *parent=0) | |
~MainWindow () | |
void | addPart (const char *szName, const char *type, int frames, const char *portName, const char *szFileName=NULL) |
function that adds a data part to the main window | |
bool | setPartProgress (const char *szName, int percentage) |
function that sets the dataset part progress bar | |
bool | setInitialPartProgress (const char *szName, int percentage) |
function that sets the initial dataset part progress bar | |
bool | getPartPort (const char *szName, QString *dest) |
function that handles individual dataset part ports | |
bool | setFrameRate (const char *szName, int frameRate) |
function that sets the frame rate | |
bool | setTimeTaken (const char *szName, double time) |
function that sets the time taken | |
void | setPlayProgress (int percentage) |
function that sets the play progress bar | |
bool | attach (yarp::os::RpcServer &source) |
function that that attaches the rpcServer port for IDL | |
bool | step () override |
function that that handles an IDL message - step | |
bool | setFrame (const int frameNum) override |
function that handles an IDL message - setFrame | |
int | getFrame (const std::string &name) override |
function that handles an IDL message - getFrame | |
bool | load (const std::string &path) override |
function that handles an IDL message - load | |
int | getSliderPercentage () override |
function that returns slider percentage | |
std::string | getStatus () override |
function that returns the player status (playing, paused, stopped) | |
bool | play () override |
function that handles an IDL message - play | |
bool | pause () override |
function that handles an IDL message - pause | |
bool | stop () override |
function that handles an IDL message - stop | |
bool | quit () override |
function that handles an IDL message - quit | |
MainWindow (QWidget *parent=0) | |
~MainWindow () | |
MainWindow (QWidget *parent=0) | |
void | init (yarp::os::Property config) |
Init the application with the current configuration. | |
~MainWindow () | |
void | reportErrors () |
Reports tge error on the log window. | |
MainWindow (const yarp::os::ResourceFinder &rf, QWidget *parent=0, double refresh_period=0.01) | |
~MainWindow () | |
MainWindow (QWidget *parent=0) | |
bool | init (std::vector< std::string > enabledParts, ResourceFinder &finder, bool debug_param_enabled, bool speedview_param_enabled, bool enable_calib_all) |
~MainWindow () | |
void | term () |
MainWindow (QWidget *parent=0) | |
~MainWindow () | |
void | drawGraph (yarp::profiler::graph::Graph &graph) |
void | onProgress (unsigned int percentage) override |
![]() | |
ResourceFinder () | |
ResourceFinder (const ResourceFinder &alt) | |
virtual | ~ResourceFinder () |
const ResourceFinder & | operator= (const ResourceFinder &alt) |
bool | configure (int argc, char *argv[], bool skipFirstArgument=true) |
Sets up the ResourceFinder. | |
bool | setDefaultContext (const std::string &contextName) |
Sets the context for the current ResourceFinder object. | |
bool | setDefault (const std::string &key, const std::string &val) |
Provide a default value for a given key. | |
bool | setDefault (const std::string &key, std::int32_t val) |
Provide a default value for a given key. | |
bool | setDefault (const std::string &key, yarp::conf::float64_t val) |
Provide a default value for a given key. | |
bool | setDefault (const std::string &key, const yarp::os::Value &val) |
Provide a default value for a given key. | |
bool | setDefaultConfigFile (const std::string &fname) |
Provide a default value for the configuration file (can be overridden from command line with the –from argument) | |
std::string | findFile (const std::string &name) |
Find the full path to a file. | |
std::string | findFileByName (const std::string &name) |
Find the full path to a file. | |
std::string | findPath (const std::string &name) |
Expand a partial path to a full path. | |
yarp::os::Bottle | findPaths (const std::string &name) |
Expand a partial path to a list of paths. | |
std::string | findPath () |
Find the first existing directory in the search path. | |
std::string | getContext () |
Return the default "context" or "application name" used in searching for configuration files. | |
yarp::os::Bottle | getContexts () |
Return the full stack of contexts used in searching for configuration files. | |
bool | check (const std::string &key) const override |
Check if there exists a property of the given name. | |
Value & | find (const std::string &key) const override |
Gets a value corresponding to a given keyword. | |
Bottle & | findGroup (const std::string &key) const override |
Gets a list corresponding to a given keyword. | |
bool | isNull () const override |
Checks if the object is invalid. | |
std::string | toString () const override |
Return a standard text representation of the content of the object. | |
virtual ResourceFinder | findNestedResourceFinder (const std::string &key) |
Gets a section as a ResourceFinder object, retaining the context and configuration of the current ResourceFinder. | |
bool | isConfigured () const |
std::string | getHomeContextPath () |
Return the path to the "user" context directory for the current context. | |
std::string | getHomeRobotPath () |
Return the path to the "user" robot directory. | |
yarp::os::Bottle | findPaths (const std::string &name, const ResourceFinderOptions &options) |
std::string | findPath (const std::string &name, const ResourceFinderOptions &options) |
std::string | findFile (const std::string &name, const ResourceFinderOptions &options) |
std::string | findFileByName (const std::string &name, const ResourceFinderOptions &options) |
bool | readConfig (Property &config, const std::string &key, const ResourceFinderOptions &options) |
bool | setVerbose (bool verbose=true) |
Request that information be printed to the console on how resources are being found. | |
bool | setQuiet (bool quiet=true) |
Request that information be suppressed from the console. | |
virtual bool | check (const std::string &key) const=0 |
Check if there exists a property of the given name. | |
virtual bool | check (const std::string &key, const std::string &comment) const |
Check if there exists a property of the given name. | |
virtual bool | check (const std::string &key, Value *&result, const std::string &comment="") const |
Gets a value corresponding to a given keyword. | |
virtual Value | check (const std::string &key, const Value &fallback, const std::string &comment="") const |
Gets a value corresponding to a given keyword. | |
virtual Bottle & | findGroup (const std::string &key) const=0 |
Gets a list corresponding to a given keyword. | |
Bottle & | findGroup (const std::string &key, const std::string &comment) const |
Gets a list corresponding to a given keyword. | |
![]() | |
Searchable () | |
Default constructor. | |
Searchable (const Searchable &rhs)=default | |
Copy constructor. | |
Searchable (Searchable &&rhs) noexcept=default | |
Move constructor. | |
virtual | ~Searchable () |
Destructor. | |
Searchable & | operator= (const Searchable &rhs)=default |
Copy assignment operator. | |
Searchable & | operator= (Searchable &&rhs) noexcept=default |
Move assignment operator. | |
Bottle & | findGroup (const std::string &key, const std::string &comment) const |
Gets a list corresponding to a given keyword. | |
![]() | |
virtual yarp::os::ApplicationNetworkProtocolVersion | getLocalProtocolVersion () |
virtual yarp::os::ApplicationNetworkProtocolVersion | getRemoteProtocolVersion () |
virtual bool | checkProtocolVersion () |
yarpdataplayer_IDL () | |
virtual bool | setFrame (const std::int32_t frameNum) |
Sets the frame number to the user desired frame. | |
virtual std::vector< std::string > | help (const std::string &functionName="--all") |
bool | read (yarp::os::ConnectionReader &connection) override |
Read this object from a network connection. | |
![]() | |
yarp::os::WireLink & | yarp () |
Get YARP state associated with this object. | |
const yarp::os::WireLink & | yarp () const |
Get YARP state associated with this object (const version). | |
![]() | |
virtual | ~PortReader () |
Destructor. | |
virtual Type | getReadType () const |
![]() | |
virtual | ~ProgressCallback () |
Public Attributes | |
yarp::os::Network | yarp |
yarp::dev::IBattery * | ibat |
yarp::dev::PolyDriver * | drv |
QGraphicsScene * | scene |
double | max_vel_lin = 1 |
double | max_vel_theta = 10 |
double | cur_vel_lin_x = 0 |
double | cur_vel_lin_y = 0 |
double | cur_vel_theta = 0 |
double | lin_vel_step = 0.05 |
double | ang_vel_step = 5 |
std::string | portname = "/yarpmobilebasegui:o" |
yarp::os::Port | outputport |
bool | pressed_left = false |
bool | pressed_up = false |
bool | pressed_down = false |
bool | pressed_right = false |
bool | pressed_turn_left = false |
bool | pressed_turn_right = false |
yarp::dev::MobileBaseVelocity | output_data |
Protected Member Functions | |
bool | updateFrameNumber (int number) |
function that updates the frame number | |
void | createUtilities () |
function that creates utilities | |
void | clearUtilities () |
function that deletes utilities | |
void | getFrameCmd (const char *part, int *frame) |
function that gets the frame command | |
void | stepFromCommand (yarp::os::Bottle &reply) |
function steps datasets when requeted from terminal | |
void | closeEvent (QCloseEvent *event) override |
void | closeEvent (QCloseEvent *) override |
void | keyReleaseEvent (QKeyEvent *e) override |
void | keyPressEvent (QKeyEvent *e) override |
void | closeEvent (QCloseEvent *event) override |
Protected Attributes | |
QUtilities * | qutilities |
std::map< const char *, int > | partMap |
int | itr |
int | column |
bool | withExtraTimeCol |
bool | quitFromCmd |
Friends | |
class | QUtilities |
class | NewApplicationWizard |
Additional Inherited Members | |
![]() | |
static ResourceFinder & | getResourceFinderSingleton () |
Access a ResourceFinder singleton whose lifetime will match that of the YARP library. | |
MainWindow class.
|
explicit |
Definition at line 186 of file display.cpp.
MainWindow::~MainWindow | ( | ) |
Definition at line 21 of file display.cpp.
|
explicit |
Definition at line 48 of file mainwindow.cpp.
MainWindow::~MainWindow | ( | ) |
|
explicit |
Definition at line 309 of file mainwindow.cpp.
MainWindow::~MainWindow | ( | ) |
|
explicit |
MainWindow::~MainWindow | ( | ) |
|
explicit |
Definition at line 132 of file display.cpp.
MainWindow::~MainWindow | ( | ) |
|
explicit |
MainWindow::~MainWindow | ( | ) |
|
explicit |
MainWindow::~MainWindow | ( | ) |
void MainWindow::addPart | ( | const char * | szName, |
const char * | type, | ||
int | frames, | ||
const char * | portName, | ||
const char * | szFileName = NULL |
||
) |
function that adds a data part to the main window
Definition at line 646 of file mainwindow.cpp.
bool MainWindow::attach | ( | yarp::os::RpcServer & | source | ) |
function that that attaches the rpcServer port for IDL
Definition at line 144 of file mainwindow.cpp.
|
protected |
function that deletes utilities
Definition at line 477 of file mainwindow.cpp.
|
overrideprotected |
|
overrideprotected |
Definition at line 502 of file mainwindow.cpp.
|
overrideprotected |
|
protected |
function that creates utilities
Definition at line 464 of file mainwindow.cpp.
void MainWindow::drawGraph | ( | yarp::profiler::graph::Graph & | graph | ) |
Definition at line 132 of file MainWindow.cpp.
function that handles an IDL message - getFrame
Reimplemented from yarpdataplayer_IDL.
Definition at line 183 of file mainwindow.cpp.
function that gets the frame command
Definition at line 350 of file mainwindow.cpp.
function that gets which parts are activated
Definition at line 486 of file mainwindow.cpp.
function that handles individual dataset part ports
Definition at line 1068 of file mainwindow.cpp.
|
overridevirtual |
function that returns slider percentage
Reimplemented from yarpdataplayer_IDL.
Definition at line 201 of file mainwindow.cpp.
|
overridevirtual |
function that returns the player status (playing, paused, stopped)
Reimplemented from yarpdataplayer_IDL.
Definition at line 219 of file mainwindow.cpp.
bool MainWindow::init | ( | std::vector< std::string > | enabledParts, |
ResourceFinder & | finder, | ||
bool | debug_param_enabled, | ||
bool | speedview_param_enabled, | ||
bool | enable_calib_all | ||
) |
Definition at line 592 of file mainwindow.cpp.
void MainWindow::init | ( | yarp::os::Property | config | ) |
Init the application with the current configuration.
config | the configuration |
Definition at line 207 of file mainwindow.cpp.
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
signal |
|
overrideprotected |
Definition at line 55 of file display.cpp.
|
overrideprotected |
Definition at line 42 of file display.cpp.
function that handles an IDL message - load
Reimplemented from yarpdataplayer_IDL.
Definition at line 234 of file mainwindow.cpp.
|
slot |
Definition at line 1431 of file mainwindow.cpp.
Reimplemented from yarp::profiler::NetworkProfiler::ProgressCallback.
Definition at line 125 of file MainWindow.cpp.
|
slot |
Definition at line 1390 of file mainwindow.cpp.
|
slot |
Definition at line 1405 of file mainwindow.cpp.
|
slot |
Definition at line 1418 of file mainwindow.cpp.
|
slot |
Definition at line 1397 of file mainwindow.cpp.
|
slot |
Definition at line 1411 of file mainwindow.cpp.
|
slot |
Definition at line 1424 of file mainwindow.cpp.
|
slot |
Called when a tab has been pressed.
index | the index of the tab |
Definition at line 927 of file mainwindow.cpp.
|
overridevirtual |
function that handles an IDL message - pause
Reimplemented from yarpdataplayer_IDL.
Definition at line 286 of file mainwindow.cpp.
|
overridevirtual |
function that handles an IDL message - play
Reimplemented from yarpdataplayer_IDL.
Definition at line 273 of file mainwindow.cpp.
|
overridevirtual |
function that handles an IDL message - quit
Reimplemented from yarpdataplayer_IDL.
Definition at line 312 of file mainwindow.cpp.
void MainWindow::reportErrors | ( | ) |
Reports tge error on the log window.
Definition at line 375 of file mainwindow.cpp.
|
signal |
function that handles an IDL message - setFrame
Definition at line 170 of file mainwindow.cpp.
function that sets the frame rate
Definition at line 1084 of file mainwindow.cpp.
function that sets the initial dataset part progress bar
Definition at line 680 of file mainwindow.cpp.
function that sets the dataset part progress bar
Definition at line 698 of file mainwindow.cpp.
function that sets the play progress bar
Definition at line 1110 of file mainwindow.cpp.
function that sets the time taken
Definition at line 1097 of file mainwindow.cpp.
|
signal |
|
overridevirtual |
function that that handles an IDL message - step
Reimplemented from yarpdataplayer_IDL.
Definition at line 150 of file mainwindow.cpp.
|
protected |
function steps datasets when requeted from terminal
Definition at line 362 of file mainwindow.cpp.
|
overridevirtual |
function that handles an IDL message - stop
Reimplemented from yarpdataplayer_IDL.
Definition at line 299 of file mainwindow.cpp.
void MainWindow::term | ( | ) |
Definition at line 369 of file mainwindow.cpp.
function that updates the frame number
Definition at line 328 of file mainwindow.cpp.
|
slot |
Load the Application on the MainWindow.
app | the Application |
Definition at line 622 of file mainwindow.cpp.
|
slot |
Load the Module on the MainWindow.
module | the module |
Definition at line 604 of file mainwindow.cpp.
|
slot |
Load the Resource on the MainWindow.
res | the resource |
Definition at line 586 of file mainwindow.cpp.
|
friend |
Definition at line 32 of file mainwindow.h.
|
friend |
Definition at line 41 of file mainwindow.h.
|
protected |
Definition at line 202 of file mainwindow.h.
yarp::dev::PolyDriver* MainWindow::drv |
yarp::dev::IBattery* MainWindow::ibat |
|
protected |
Definition at line 201 of file mainwindow.h.
yarp::dev::MobileBaseVelocity MainWindow::output_data |
yarp::os::Port MainWindow::outputport |
|
protected |
Definition at line 200 of file mainwindow.h.
|
protected |
Definition at line 204 of file mainwindow.h.
|
protected |
Definition at line 198 of file mainwindow.h.
|
protected |
Definition at line 203 of file mainwindow.h.
yarp::os::Network MainWindow::yarp |