|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| struct | Run |
| class | EKFSlam |
| Simultaneous localisation and mapping with an extended Kalman filter: a robot works out where it is and where the landmarks around it are, at the same time, from odometry and range-and-bearing sightings of the landmarks. More... | |
| class | BoxWorld |
| A rectangular slice of the plane with axis-aligned box obstacles, a start and a goal. More... | |
Typedefs | |
| using | Point = std::array<real_t, 2> |
| using | Pose = EKFSlam::Pose |
| using | real_t |
| real_t | |
| using | uint_t |
| uint_t | |
Functions | |
| std::vector< EKFSlam::Observation > | sight (const BoxWorld &world, const Pose &pose, const EKFSlam::Parameters &p, std::mt19937 &rng) |
| Run | simulate () |
| real_t | error (const Pose &a, const Pose &b) |
| void | draw (const BoxWorld &world, const Run &run) |
| void | run () |
| real_t | wrap_angle (real_t angle) |
| The angle [rad] wrapped to \((-\pi, \pi]\), so that angles that differ by whole turns compare equal. | |
Variables | |
| const real_t | DT = 0.1 |
| const real_t | SPEED = 0.3 |
| const real_t | MAX_TURN = 1.5 |
| const real_t | SENSOR_RANGE = 2.5 |
| const uint_t | SIGHT_EVERY = 5 |
| const std::vector< Point > | POSTS |
| const std::vector< Point > | ROUTE |
| using ekf_slam::Point = std::array<real_t, 2> |
| using ekf_slam::Pose = EKFSlam::Pose |
| using bitsim::real_t |
| using bitsim::uint_t |
| void ekf_slam::run | ( | ) |
| std::vector< EKFSlam::Observation > ekf_slam::sight | ( | const BoxWorld & | world, |
| const Pose & | pose, | ||
| const EKFSlam::Parameters & | p, | ||
| std::mt19937 & | rng ) |
| Run ekf_slam::simulate | ( | ) |
|
inline |
The angle [rad] wrapped to \((-\pi, \pi]\), so that angles that differ by whole turns compare equal.
| const real_t ekf_slam::DT = 0.1 |
| const real_t ekf_slam::MAX_TURN = 1.5 |
| const std::vector<Point> ekf_slam::POSTS |
| const std::vector<Point> ekf_slam::ROUTE |
| const real_t ekf_slam::SENSOR_RANGE = 2.5 |
| const uint_t ekf_slam::SIGHT_EVERY = 5 |
| const real_t ekf_slam::SPEED = 0.3 |