Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QTestFixture Class Reference

Base class for all Gazebo GUI unit tests. More...

#include <QTestFixture.hh>

Inheritance diagram for QTestFixture:
Inheritance graph
[legend]

Public Member Functions

 QTestFixture ()
 

Protected Member Functions

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 SetPause (bool _pause)
 Pause or unpause the world. More...
 

Protected Attributes

double resMaxPercentChange
 Maximum allowed percent change in resident memory usage. More...
 
gazebo::Serverserver
 The Gazebo server, which is run in a thread. More...
 
boost::thread * serverThread
 Thread to run the Gazebo server. More...
 
double shareMaxPercentChange
 Maximum allowed percent change in shared memory usage. More...
 

Detailed Description

Base class for all Gazebo GUI unit tests.

Constructor & Destructor Documentation

QTestFixture::QTestFixture ( )

Member Function Documentation

void QTestFixture::GetMemInfo ( double &  _resident,
double &  _share 
)
protected

Get memory information about the current process.

Parameters
[out]_residentResident size, in Kb.
[out]_shareShared memory, in Kb.
void QTestFixture::Load ( const std::string &  _worldFilename,
bool  _paused = false,
bool  _serverScene = true,
bool  _clientScene = false 
)
protected

Load a world.

Parameters
[in]_worldFilenameName of the world to load.
[in]_pausedTrue to start the world paused.
[in]_serverSceneTrue to create a scene on the server
[in]_clientSceneTrue to create a scene on the client
void QTestFixture::SetPause ( bool  _pause)
protected

Pause or unpause the world.

Parameters
[in]_pauseTrue to pause the world

Member Data Documentation

double QTestFixture::resMaxPercentChange
protected

Maximum allowed percent change in resident memory usage.

gazebo::Server* QTestFixture::server
protected

The Gazebo server, which is run in a thread.

boost::thread* QTestFixture::serverThread
protected

Thread to run the Gazebo server.

double QTestFixture::shareMaxPercentChange
protected

Maximum allowed percent change in shared memory usage.


The documentation for this class was generated from the following file: