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

Classes

struct  Options
struct  Result
class  World
class  CHRONO_DiffDriveRobot
 A differential-drive robot in Chrono: a chassis, two driven wheels and a ball caster. Each driven wheel has an actuators::DCMotor. More...

Typedefs

using real_t
 real_t
using uint_t
 uint_t

Functions

std::string name_of (uint_t k)
Result simulate (uint_t k, const Options &options, Transport &transport)
void report (const std::vector< Result > &results, uint_t first=0)
std::vector< Result > run_in_process (const Options &options)
int run (const Options &options)

Variables

const std::string ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json"
const std::array< real_t, 3 > CHASSIS {0.5, 0.3, 0.1}
const real_t START = 2.0
const real_t SPEED = 0.3
const real_t STOP_AT = 0.4
const real_t STEP = 0.01
const uint_t STEPS_PER_SYNC = 2
const real_t DURATION = 12.0

Typedef Documentation

◆ real_t

◆ uint_t

Function Documentation

◆ name_of()

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

◆ report()

void distributed_chrono_robots::report ( const std::vector< Result > & results,
uint_t first = 0 )

◆ run()

int distributed_chrono_robots::run ( const Options & options)

◆ run_in_process()

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

◆ simulate()

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

Variable Documentation

◆ CHASSIS

const std::array<real_t, 3> distributed_chrono_robots::CHASSIS {0.5, 0.3, 0.1}

◆ DURATION

const real_t distributed_chrono_robots::DURATION = 12.0

◆ ROBOT_FILE

const std::string distributed_chrono_robots::ROBOT_FILE = bitsim::consts::ROBOTS_DIR + "/bitsim_diff_drive_robot.json"

◆ SPEED

const real_t distributed_chrono_robots::SPEED = 0.3

◆ START

const real_t distributed_chrono_robots::START = 2.0

◆ STEP

const real_t distributed_chrono_robots::STEP = 0.01

◆ STEPS_PER_SYNC

const uint_t distributed_chrono_robots::STEPS_PER_SYNC = 2

◆ STOP_AT

const real_t distributed_chrono_robots::STOP_AT = 0.4