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

What a participant knows of another at a step. More...

#include <synchroniser.h>

Public Attributes

std::string participant
uint_t step {0}
real_t time {0.0}
 the simulated time of the state
real_t age {0.0}
 wall-clock: how long ago it was sent [s]; 0 in lockstep
bool stale {false}
 wall-clock: older than stale_after, or never received
bool left {false}
 the participant has left; bodies is its last state
std::vector< BodyState > bodies
std::vector< real_t > values
 the values it sent with the state, as they were

Detailed Description

What a participant knows of another at a step.

Member Data Documentation

◆ age

real_t bitsim::distributed::PeerState::age {0.0}

wall-clock: how long ago it was sent [s]; 0 in lockstep

◆ bodies

std::vector<BodyState> bitsim::distributed::PeerState::bodies

◆ left

bool bitsim::distributed::PeerState::left {false}

the participant has left; bodies is its last state

◆ participant

std::string bitsim::distributed::PeerState::participant

◆ stale

bool bitsim::distributed::PeerState::stale {false}

wall-clock: older than stale_after, or never received

◆ step

uint_t bitsim::distributed::PeerState::step {0}

◆ time

real_t bitsim::distributed::PeerState::time {0.0}

the simulated time of the state

◆ values

std::vector<real_t> bitsim::distributed::PeerState::values

the values it sent with the state, as they were


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