11 #include <mc_rtc/config.h>
13 #include <mc_rtc/version.h>
36 std::string mc_rtc_configuration =
"";
38 bool step_by_step =
false;
40 double run_for = std::numeric_limits<double>::infinity();
44 double sync_ratio = 1.0;
51 bool with_inputs =
true;
53 bool with_gui_inputs =
true;
56 std::string with_datastore_config =
"";
58 bool with_outputs =
false;
60 bool stop_after_log =
true;
62 bool exit_after_log =
false;
86 inline double elapsed_time() const noexcept {
return static_cast<double>(iters_) * gc_.timestep(); }
97 std::shared_ptr<mc_rtc::log::FlatLog>
log_;
103 double sim_real_ratio_ = 1.0;
106 std::atomic<bool> do_reset_ =
false;
109 bool running_ =
true;
112 bool replay_done_ =
false;
115 int64_t rem_steps_ = 0;
117 void simulate_sensors();
121 void set_time(
double t);