|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitsim/bitsim_config.h"#include "bitsim/bitsim_consts.h"#include "bitsim/bitsim_types.h"#include "bitsim/distributed/state_message.h"#include "bitsim/distributed/synchroniser.h"#include "bitsim/distributed/transport.h"#include "bitsim/utils/io/print_utils.h"#include "bitsim/distributed/mqtt_transport.h"#include <algorithm>#include <chrono>#include <cmath>#include <cstdlib>#include <fstream>#include <iomanip>#include <iostream>#include <random>#include <string>#include <thread>
Classes | |
| struct | hardware_in_the_loop_sync::Pose |
| struct | hardware_in_the_loop_sync::Statistics |
Namespaces | |
| namespace | hardware_in_the_loop_sync |
Typedefs | |
| using | hardware_in_the_loop_sync::steady = std::chrono::steady_clock |
| using | hardware_in_the_loop_sync::real_t |
| real_t | |
| using | hardware_in_the_loop_sync::uint_t |
| uint_t | |
Functions | |
| Pose | hardware_in_the_loop_sync::true_pose (real_t t) |
| void | hardware_in_the_loop_sync::real_robot (Transport &transport, real_t duration, steady::time_point start) |
| Statistics | hardware_in_the_loop_sync::simulation (Transport &transport, real_t duration, bool extrapolate, steady::time_point start, const std::string &csv) |
| void | hardware_in_the_loop_sync::report (const std::string &name, const Statistics &s) |
| Statistics | hardware_in_the_loop_sync::run_in_process (real_t duration, bool extrapolate, const std::string &csv) |
| int | hardware_in_the_loop_sync::run (real_t duration, const std::string &transport, const std::string &role, const std::string &broker) |
| int | main (int argc, char **argv) |
Variables | |
| const real_t | hardware_in_the_loop_sync::PI = bitsim::consts::maths::PI |
| const real_t | hardware_in_the_loop_sync::SPEED = 0.4 |
| const real_t | hardware_in_the_loop_sync::TURN = 0.4 |
| const real_t | hardware_in_the_loop_sync::REPORT_PERIOD = 0.1 |
| const real_t | hardware_in_the_loop_sync::DROP_FROM = 0.45 |
| const real_t | hardware_in_the_loop_sync::DROP_LENGTH = 1.5 |
| const real_t | hardware_in_the_loop_sync::SIM_PERIOD = 0.02 |
| const real_t | hardware_in_the_loop_sync::BEHIND = 0.5 |
| const real_t | hardware_in_the_loop_sync::STALE_AFTER = 0.4 |
| int main | ( | int | argc, |
| char ** | argv ) |