|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitsim/bitsim_types.h"#include "bitsim/utils/concurrency/concurrent_queue.h"#include "bitsim/utils/io/print_utils.h"#include <algorithm>#include <chrono>#include <cmath>#include <iomanip>#include <iostream>#include <random>#include <thread>
Classes | |
| struct | producer_consumer::GyroReading |
| struct | producer_consumer::Estimate |
| class | producer_consumer::ConcurrentQueue< T > |
| A first-in first-out queue that several threads can push to and pop from. More... | |
Namespaces | |
| namespace | producer_consumer |
Typedefs | |
| using | producer_consumer::clock_type = std::chrono::steady_clock |
| using | producer_consumer::real_t |
| real_t | |
| using | producer_consumer::uint_t |
| uint_t | |
Functions | |
| void | producer_consumer::sensor (ConcurrentQueue< GyroReading > &queue) |
| Estimate | producer_consumer::estimator (ConcurrentQueue< GyroReading > &queue, std::chrono::microseconds work_per_reading) |
| void | producer_consumer::report (const std::string &name, const Estimate &e, real_t seconds) |
| void | producer_consumer::run_with (const std::string &name, std::chrono::microseconds work_per_reading) |
| void | producer_consumer::run () |
| int | main () |
Variables | |
| const real_t | producer_consumer::PERIOD = 0.005 |
| const uint_t | producer_consumer::N_READINGS = 400 |
| const real_t | producer_consumer::TRUE_RATE = 0.5 |
| int main | ( | ) |