Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
SimulatorConfig Struct Reference

Detailed Description

The set of all configurable properties on a Simulator and IntegratorBase.

#include <drake/systems/analysis/simulator_config.h>

Public Member Functions

template<typename Archive>
void Serialize (Archive *a)
 Passes this object to an Archive.

Public Attributes

std::string integration_scheme {"runge_kutta3"}
double max_step_size {0.1}
double accuracy {1.0e-4}
bool use_error_control {true}
double start_time {0.0}
 Starting time of the simulation.
double target_realtime_rate {0.0}
std::variant< std::monostate, multibody::CenicIntegratorParameters > integrator_params
 (Advanced) Integrator-specific parameters, beyond the generic ones above.

Member Function Documentation

◆ Serialize()

template<typename Archive>
void Serialize ( Archive * a)

Passes this object to an Archive.

Refer to YAML Serialization for background.

Member Data Documentation

◆ accuracy

double accuracy {1.0e-4}

◆ integration_scheme

std::string integration_scheme {"runge_kutta3"}

◆ integrator_params

std::variant<std::monostate, multibody::CenicIntegratorParameters> integrator_params

(Advanced) Integrator-specific parameters, beyond the generic ones above.

The default (std::monostate, or null in YAML) leaves the integrator's own default parameters in place. Otherwise, the alternative must match integration_scheme; currently the only choice is multibody::CenicIntegratorParameters (with integration_scheme: cenic), which is selected in YAML with the !CenicIntegratorParameters tag. It is an error to provide parameters for a different integration scheme. See, e.g., the "Explicit external inputs" section of drake::multibody::CenicIntegrator.

◆ max_step_size

double max_step_size {0.1}

◆ start_time

double start_time {0.0}

Starting time of the simulation.

We will set the context time to start_time at the beginning of the simulation.

◆ target_realtime_rate

double target_realtime_rate {0.0}

◆ use_error_control

bool use_error_control {true}

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