bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
distributed_robots Namespace Reference

Classes

struct  Options
struct  Result

Typedefs

using real_t
 real_t
using uint_t
 uint_t

Functions

std::string name_of (uint_t k)
real_t wrap (real_t a)
std::array< real_t, 2 > steer (const bitsim::dynamics::SysState< 3 > &s, const std::array< real_t, 2 > &goal, const std::vector< PeerState > &peers)
Result simulate (uint_t k, const Options &options, Transport &transport)
real_t closest (const std::vector< Result > &results)
void report (const std::vector< Result > &results, real_t wall_seconds, SyncMode mode)
std::vector< Result > run_in_process (const Options &options)
template<typename F>
real_t timed (F &&f)
int run (const Options &options)

Variables

const real_t PI = bitsim::consts::maths::PI
const real_t CIRCLE = 2.0
const real_t RADIUS = 0.15
const real_t MAX_V = 0.5
const real_t MAX_W = 2.0
const real_t DT = 0.01
const uint_t STEPS_PER_SYNC = 5
const real_t TIME_LIMIT = 40.0

Typedef Documentation

◆ real_t

◆ uint_t

Function Documentation

◆ closest()

real_t distributed_robots::closest ( const std::vector< Result > & results)

◆ name_of()

std::string distributed_robots::name_of ( uint_t k)

◆ report()

void distributed_robots::report ( const std::vector< Result > & results,
real_t wall_seconds,
SyncMode mode )

◆ run()

int distributed_robots::run ( const Options & options)

◆ run_in_process()

std::vector< Result > distributed_robots::run_in_process ( const Options & options)

◆ simulate()

Result distributed_robots::simulate ( uint_t k,
const Options & options,
Transport & transport )

◆ steer()

std::array< real_t, 2 > distributed_robots::steer ( const bitsim::dynamics::SysState< 3 > & s,
const std::array< real_t, 2 > & goal,
const std::vector< PeerState > & peers )

◆ timed()

template<typename F>
real_t distributed_robots::timed ( F && f)

◆ wrap()

real_t distributed_robots::wrap ( real_t a)

Variable Documentation

◆ CIRCLE

const real_t distributed_robots::CIRCLE = 2.0

◆ DT

const real_t distributed_robots::DT = 0.01

◆ MAX_V

const real_t distributed_robots::MAX_V = 0.5

◆ MAX_W

const real_t distributed_robots::MAX_W = 2.0

◆ PI

const real_t distributed_robots::PI = bitsim::consts::maths::PI

◆ RADIUS

const real_t distributed_robots::RADIUS = 0.15

◆ STEPS_PER_SYNC

const uint_t distributed_robots::STEPS_PER_SYNC = 5

◆ TIME_LIMIT

const real_t distributed_robots::TIME_LIMIT = 40.0