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

Classes

struct  Pose
struct  Statistics

Typedefs

using steady = std::chrono::steady_clock
using real_t
 real_t
using uint_t
 uint_t

Functions

Pose true_pose (real_t t)
void real_robot (Transport &transport, real_t duration, steady::time_point start)
Statistics simulation (Transport &transport, real_t duration, bool extrapolate, steady::time_point start, const std::string &csv)
void report (const std::string &name, const Statistics &s)
Statistics run_in_process (real_t duration, bool extrapolate, const std::string &csv)
int run (real_t duration, const std::string &transport, const std::string &role, const std::string &broker)

Variables

const real_t PI = bitsim::consts::maths::PI
const real_t SPEED = 0.4
const real_t TURN = 0.4
const real_t REPORT_PERIOD = 0.1
const real_t DROP_FROM = 0.45
const real_t DROP_LENGTH = 1.5
const real_t SIM_PERIOD = 0.02
const real_t BEHIND = 0.5
const real_t STALE_AFTER = 0.4

Typedef Documentation

◆ real_t

◆ steady

using hardware_in_the_loop_sync::steady = std::chrono::steady_clock

◆ uint_t

Function Documentation

◆ real_robot()

void hardware_in_the_loop_sync::real_robot ( Transport & transport,
real_t duration,
steady::time_point start )

◆ report()

void hardware_in_the_loop_sync::report ( const std::string & name,
const Statistics & s )

◆ run()

int hardware_in_the_loop_sync::run ( real_t duration,
const std::string & transport,
const std::string & role,
const std::string & broker )

◆ run_in_process()

Statistics hardware_in_the_loop_sync::run_in_process ( real_t duration,
bool extrapolate,
const std::string & csv )

◆ simulation()

Statistics hardware_in_the_loop_sync::simulation ( Transport & transport,
real_t duration,
bool extrapolate,
steady::time_point start,
const std::string & csv )

◆ true_pose()

Pose hardware_in_the_loop_sync::true_pose ( real_t t)

Variable Documentation

◆ BEHIND

const real_t hardware_in_the_loop_sync::BEHIND = 0.5

◆ DROP_FROM

const real_t hardware_in_the_loop_sync::DROP_FROM = 0.45

◆ DROP_LENGTH

const real_t hardware_in_the_loop_sync::DROP_LENGTH = 1.5

◆ PI

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

◆ REPORT_PERIOD

const real_t hardware_in_the_loop_sync::REPORT_PERIOD = 0.1

◆ SIM_PERIOD

const real_t hardware_in_the_loop_sync::SIM_PERIOD = 0.02

◆ SPEED

const real_t hardware_in_the_loop_sync::SPEED = 0.4

◆ STALE_AFTER

const real_t hardware_in_the_loop_sync::STALE_AFTER = 0.4

◆ TURN

const real_t hardware_in_the_loop_sync::TURN = 0.4