bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
ekf_slam.cpp File Reference
#include "bitsim/estimation/ekf_slam.h"
#include "bitsim/bitsim_types.h"
#include "bitsim/maths/math_utils.h"
#include "bitsim/planning/box_world.h"
#include "bitsim/utils/io/print_utils.h"
#include <algorithm>
#include <array>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <random>
#include <string>
#include <vector>
Include dependency graph for ekf_slam.cpp:

Classes

struct  ekf_slam::Run
class  ekf_slam::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  ekf_slam::BoxWorld
 A rectangular slice of the plane with axis-aligned box obstacles, a start and a goal. More...

Namespaces

namespace  ekf_slam

Typedefs

using ekf_slam::Point = std::array<real_t, 2>
using ekf_slam::Pose = EKFSlam::Pose
using ekf_slam::real_t
 real_t
using ekf_slam::uint_t
 uint_t

Functions

std::vector< EKFSlam::Observation > ekf_slam::sight (const BoxWorld &world, const Pose &pose, const EKFSlam::Parameters &p, std::mt19937 &rng)
Run ekf_slam::simulate ()
real_t ekf_slam::error (const Pose &a, const Pose &b)
void ekf_slam::draw (const BoxWorld &world, const Run &run)
void ekf_slam::run ()
int main ()
real_t ekf_slam::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 ekf_slam::DT = 0.1
const real_t ekf_slam::SPEED = 0.3
const real_t ekf_slam::MAX_TURN = 1.5
const real_t ekf_slam::SENSOR_RANGE = 2.5
const uint_t ekf_slam::SIGHT_EVERY = 5
const std::vector< Point > ekf_slam::POSTS
const std::vector< Point > ekf_slam::ROUTE

Function Documentation

◆ main()

int main ( )