File derSimulationEnvironment.h

class derSimulationEnvironment
#include <derSimulationEnvironment.h>

derSimulationEnvironment.h

Declarations for the abstract class derSimulationEnvironment. A derSimulationEnvironment actually executes the DER simulation, abstracting away the GUI if needed.

Copyright 2020 Andrew P. Sabelhaus and Soft Machines Lab at CMU

Subclassed by headlessDERSimulationEnvironment, openglDERSimulationEnvironment

Public Functions

derSimulationEnvironment(const shared_ptr<world> &m_world, const simParams &sim_params, const shared_ptr<worldLogger> &logger)
virtual ~derSimulationEnvironment()
virtual void runSimulation() = 0

Setup function, called SEPARATELY, as needed according to specific environment Start the simulation!

Protected Functions

void cmdlineOutputHelper()
void cleanShutdown()

Protected Attributes

shared_ptr<world> w_p = nullptr
int cmdline_per
shared_ptr<worldLogger> logger_p = nullptr
bool is_logging

Protected Static Functions

static void cmdlineOutputHelper(const shared_ptr<world> &s_world_p, int s_cmdline_per)
static void cleanShutdown(shared_ptr<worldLogger> s_logger_p, bool s_is_logging)