18 #ifndef _QTESTFIXTURE_HH_
19 #define _QTESTFIXTURE_HH_
22 #include <boost/thread.hpp>
24 #ifndef Q_MOC_RUN // See: https://bugreports.qt-project.org/browse/QTBUG-22829
28 #include "gazebo/physics/physics.hh"
29 #include "gazebo/rendering/rendering.hh"
33 #include "gazebo/gazebo_config.h"
34 #include "test_config.h"
48 protected:
void Load(
const std::string &_worldFilename,
bool _paused =
false,
49 bool _serverScene =
true,
bool _clientScene =
false);
53 protected:
void SetPause(
bool _pause);
58 protected:
void GetMemInfo(
double &_resident,
double &_share);
62 private slots:
void initTestCase();
65 private slots:
void init();
68 private slots:
void cleanup();
71 private slots:
void cleanupTestCase();
77 private:
void RunServer(
const std::string &_worldFilename,
bool _paused,
93 private:
double residentStart;
96 private:
double shareStart;
gazebo::Server * server
The Gazebo server, which is run in a thread.
Definition: QTestFixture.hh:81
void Load(const std::string &_worldFilename, bool _paused=false, bool _serverScene=true, bool _clientScene=false)
Load a world.
Base class for all Gazebo GUI unit tests.
Definition: QTestFixture.hh:37
double resMaxPercentChange
Maximum allowed percent change in resident memory usage.
Definition: QTestFixture.hh:87
void GetMemInfo(double &_resident, double &_share)
Get memory information about the current process.
void SetPause(bool _pause)
Pause or unpause the world.
boost::thread * serverThread
Thread to run the Gazebo server.
Definition: QTestFixture.hh:84
double shareMaxPercentChange
Maximum allowed percent change in shared memory usage.
Definition: QTestFixture.hh:90