NTRT Simulator
Version: Master
|
#include <tgWorld.h>
Classes | |
struct | Config |
Public Member Functions | |
tgWorld () | |
tgWorld (const Config &config) | |
tgWorld (const Config &config, tgGround *ground) | |
~tgWorld () | |
void | reset () |
void | reset (const Config &config) |
void | reset (tgGround *ground) |
void | step (double dt) const |
tgWorldImpl & | implementation () const |
double | getWorldGravity () const |
Represents the world in which the Tensegrities operate, including terrain, gravity and atmospheric conditions.
tgWorld::tgWorld | ( | ) |
Construct with the default configuration.
Definition at line 49 of file tgWorld.cpp.
tgWorld::tgWorld | ( | const Config & | config | ) |
Construct with a supplied configuration.
[in] | config | a tgWorld::Config |
Definition at line 62 of file tgWorld.cpp.
Construct with a supplied configuration and a supplied ground
[in] | config | a tgWorld::Config |
[in] | ground | a tgGround, stored in pointer m_pGround |
Definition at line 75 of file tgWorld.cpp.
tgWorld::~tgWorld | ( | ) |
Delete the implementation.
Definition at line 84 of file tgWorld.cpp.
double tgWorld::getWorldGravity | ( | ) | const |
Returns the level of gravity in this world.
Definition at line 135 of file tgWorld.cpp.
|
inline |
void tgWorld::reset | ( | ) |
Replace the implementation.
Definition at line 90 of file tgWorld.cpp.
void tgWorld::reset | ( | const Config & | config | ) |
Replace the implementation with a new config.
[in] | config | configuration POD |
Definition at line 98 of file tgWorld.cpp.
void tgWorld::reset | ( | tgGround * | ground | ) |
Replace the implementation with a new ground.
[in] | ground | the new ground |
Definition at line 109 of file tgWorld.cpp.
void tgWorld::step | ( | double | dt | ) | const |
Advance the simulation.
[in] | dt | the number of seconds since the previous call; std::invalid_argument is thrown if dt is not positive |
Definition at line 119 of file tgWorld.cpp.