bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::distributed::SynchroniserConfig Struct Reference

The settings of Synchroniser. More...

#include <synchroniser.h>

Public Attributes

SyncMode mode {SyncMode::LOCKSTEP}
real_t sync_period {0.05}
 the simulated time between two exchanges [s]
std::vector< std::string > peers
real_t timeout {10.0}
 lockstep: the longest wait for a step [s]
real_t resend_period {0.1}
 lockstep: send the last steps again this often while waiting [s]
real_t real_time_factor {1.0}
 wall-clock: simulated seconds per wall-clock second
real_t stale_after {0.5}
 wall-clock: a state older than this is stale [s]
bool extrapolate {true}
 wall-clock: move the states forward by their age

Detailed Description

The settings of Synchroniser.

Member Data Documentation

◆ extrapolate

bool bitsim::distributed::SynchroniserConfig::extrapolate {true}

wall-clock: move the states forward by their age

◆ mode

SyncMode bitsim::distributed::SynchroniserConfig::mode {SyncMode::LOCKSTEP}

◆ peers

std::vector<std::string> bitsim::distributed::SynchroniserConfig::peers

The other participants. In lockstep every step waits for all of them; in wall-clock mode they are reported stale until they appear, and participants not named here are accepted when they appear.

◆ real_time_factor

real_t bitsim::distributed::SynchroniserConfig::real_time_factor {1.0}

wall-clock: simulated seconds per wall-clock second

◆ resend_period

real_t bitsim::distributed::SynchroniserConfig::resend_period {0.1}

lockstep: send the last steps again this often while waiting [s]

◆ stale_after

real_t bitsim::distributed::SynchroniserConfig::stale_after {0.5}

wall-clock: a state older than this is stale [s]

◆ sync_period

real_t bitsim::distributed::SynchroniserConfig::sync_period {0.05}

the simulated time between two exchanges [s]

◆ timeout

real_t bitsim::distributed::SynchroniserConfig::timeout {10.0}

lockstep: the longest wait for a step [s]


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