Provides slider and functionality for log playback. to the scene.
More...
#include <PlaybackScrubber.hh>
Provides slider and functionality for log playback. to the scene.
◆ PlaybackScrubber()
◆ ~PlaybackScrubber()
◆ CalculateProgress()
double CalculateProgress |
( |
| ) |
|
Calculate the percentage that _currentTime
, eg, halfway through the log would evaluate to 0.50.
- Returns
- The progress as a percentage of how far the log playback has advanced
◆ CurrentTimeAsString
QString CurrentTimeAsString |
( |
| ) |
|
|
slot |
Get the current time of the log playback.
- Returns
- The current time in format dd hh:mm:ss.nnn as a QString.
◆ EndTimeAsString
QString EndTimeAsString |
( |
| ) |
|
|
slot |
Get the end time of the log playback.
- Returns
- The end time in format dd hh:mm:ss.nnn as a QString.
◆ LoadConfig()
void LoadConfig |
( |
const tinyxml2::XMLElement * |
_pluginElem | ) |
|
|
override |
◆ newProgress
Notify that progress has advanced in the log file.
◆ OnDrop
void OnDrop |
( |
double |
_value | ) |
|
|
slot |
Callback in Qt thread when the slider is released.
- Parameters
-
[in] | _value | The current value of the slider, from 0 to 1, inclusive |
◆ OnTimeEntered
void OnTimeEntered |
( |
const QString & |
_time | ) |
|
|
slot |
Callback when a time is entered by the user.
- Parameters
-
[in] | _time | The time in format dd hh:mm:ss.nnn |
◆ Progress
Get the current progress as a percentage of how far the log playback has advanced.
- Returns
- The progress as a value from 0 to 1, inclusive
◆ StartTimeAsString
QString StartTimeAsString |
( |
| ) |
|
|
slot |
Get the starting time of the log playback.
- Returns
- The start time in format dd hh:mm:ss.nnn as a QString.
◆ Update()
Update callback called every time the system is stepped. This is called at a Gazebo Transport thread, so any interaction with Qt should be done through signals and slots.
- Parameters
-
[in] | _info | Current simulation information, such as time. |
[in] | _ecm | Mutable reference to the ECM, so the system can read and write entities and their components. |
Reimplemented from GuiSystem.
The documentation for this class was generated from the following file: