This plugin provides a world control panel which may have a play / pause and step buttons.  
 More...
#include <WorldControl.hh>
|  | 
| void | OnPause () | 
|  | Callback in Qt thread when pause button is clicked. 
 | 
|  | 
| void | OnPlay () | 
|  | Callback in Qt thread when play button is clicked. 
 | 
|  | 
| void | OnReset () | 
|  | Callback in Qt thread when reset button is clicked. 
 | 
|  | 
| void | OnStep () | 
|  | Callback in Qt thread when step button is clicked. 
 | 
|  | 
| void | OnStepCount (const unsigned int _steps) | 
|  | Callback in Qt thread when step count is changed. 
 | 
|  | 
| void | ProcessMsg () | 
|  | Callback in main thread when diagnostics come in. 
 | 
|  | 
|  | 
| void | paused () | 
|  | Notify that it's now paused. 
 | 
|  | 
| void | playing () | 
|  | Notify that it's now playing. 
 | 
|  | 
| void | reset () | 
|  | Notify that it's now reset. 
 | 
|  | 
This plugin provides a world control panel which may have a play / pause and step buttons. 
Configuration
- <play_pause> : Set to true to see a play/pause button, false by default.
- <step> : Set to true to see a step button, false by default.
- <start_paused> : Set to false to start playing, false by default.
- <service> : Service for world control, optional. If not present, the plugin will attempt to create a topic with the main window's worldNameproperty.
- <stats_topic> : Topic to receive world statistics, optional. If not present, the plugin will attempt to create a topic with the main window's worldNameproperty.
If no elements are filled for the plugin, both the play/pause and the step buttons will be displayed. 
◆ WorldControl()
◆ ~WorldControl()
◆ LoadConfig()
  
  | 
        
          | void LoadConfig | ( | const tinyxml2::XMLElement * | _pluginElem | ) |  |  | override | 
 
 
◆ OnPause
Callback in Qt thread when pause button is clicked. 
 
 
◆ OnPlay
Callback in Qt thread when play button is clicked. 
 
 
◆ OnReset
Callback in Qt thread when reset button is clicked. 
 
 
◆ OnStep
Callback in Qt thread when step button is clicked. 
 
 
◆ OnStepCount
  
  | 
        
          | void OnStepCount | ( | const unsigned int | _steps | ) |  |  | slot | 
 
Callback in Qt thread when step count is changed. 
- Parameters
- 
  
    | [in] | _steps | New number of steps. |  
 
 
 
◆ paused
Notify that it's now paused. 
 
 
◆ playing
Notify that it's now playing. 
 
 
◆ ProcessMsg
Callback in main thread when diagnostics come in. 
 
 
◆ reset
Notify that it's now reset. 
 
 
The documentation for this class was generated from the following file: