Base class for all Gazebo GUI unit tests.
More...
#include <QTestFixture.hh>
Inherits QObject.
|
void | GetMemInfo (double &_resident, double &_share) |
| Get memory information about the current process. More...
|
|
void | Load (const std::string &_worldFilename, bool _paused=false, bool _serverScene=true, bool _clientScene=false) |
| Load a world. More...
|
|
void | ProcessEventsAndDraw (QMainWindow *_mainWindow=NULL, const unsigned int _repeat=10, const unsigned int _ms=30) |
| Give the GUI time to process events and trigger main window repaint. More...
|
|
void | SetPause (bool _pause) |
| Pause or unpause the world. More...
|
|
Base class for all Gazebo GUI unit tests.
§ QTestFixture()
§ GetMemInfo()
void GetMemInfo |
( |
double & |
_resident, |
|
|
double & |
_share |
|
) |
| |
|
protected |
Get memory information about the current process.
- Parameters
-
[out] | _resident | Resident size, in Kb. |
[out] | _share | Shared memory, in Kb. |
§ Load()
void Load |
( |
const std::string & |
_worldFilename, |
|
|
bool |
_paused = false , |
|
|
bool |
_serverScene = true , |
|
|
bool |
_clientScene = false |
|
) |
| |
|
protected |
Load a world.
- Parameters
-
[in] | _worldFilename | Name of the world to load. |
[in] | _paused | True to start the world paused. |
[in] | _serverScene | True to create a scene on the server |
[in] | _clientScene | True to create a scene on the client |
§ ProcessEventsAndDraw()
void ProcessEventsAndDraw |
( |
QMainWindow * |
_mainWindow = NULL , |
|
|
const unsigned int |
_repeat = 10 , |
|
|
const unsigned int |
_ms = 30 |
|
) |
| |
|
protected |
Give the GUI time to process events and trigger main window repaint.
- Parameters
-
[in] | _mainWindow | Pointer to the main window. If left void, repaint won't be triggered. |
[in] | _repeat | Number of times to repeat the loop. |
[in] | _ms | Time to sleep for each loop in milliseconds. |
§ SetPause()
void SetPause |
( |
bool |
_pause | ) |
|
|
protected |
Pause or unpause the world.
- Parameters
-
[in] | _pause | True to pause the world |
§ resMaxPercentChange
double resMaxPercentChange |
|
protected |
Maximum allowed percent change in resident memory usage.
§ server
The Gazebo server, which is run in a thread.
§ serverThread
boost::thread* serverThread |
|
protected |
Thread to run the Gazebo server.
§ shareMaxPercentChange
double shareMaxPercentChange |
|
protected |
Maximum allowed percent change in shared memory usage.
The documentation for this class was generated from the following file: