bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
ekf_slam_data_association.cpp File Reference
#include "bitsim/bitsim_types.h"
#include "bitsim/estimation/ekf_slam.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 <limits>
#include <map>
#include <random>
#include <string>
#include <vector>
Include dependency graph for ekf_slam_data_association.cpp:

Classes

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

Namespaces

namespace  ekf_slam_data_association

Typedefs

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

Enumerations

enum class  ekf_slam_data_association::Method { ekf_slam_data_association::ids , ekf_slam_data_association::nearest_metres , ekf_slam_data_association::mahalanobis }

Functions

std::vector< Seen > ekf_slam_data_association::sight (const BoxWorld &world, const Pose &pose, const EKFSlam::Parameters &p, std::mt19937 &rng)
Score ekf_slam_data_association::run (Method method, real_t radius=0.0)
void ekf_slam_data_association::report (const std::string &name, const Score &s)
std::string ekf_slam_data_association::times (uint_t n)
void ekf_slam_data_association::explain (const std::string &name, const Score &s)
void ekf_slam_data_association::run ()
int main ()
real_t ekf_slam_data_association::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_data_association::DT = 0.1
const real_t ekf_slam_data_association::SPEED = 0.3
const real_t ekf_slam_data_association::MAX_TURN = 1.5
const real_t ekf_slam_data_association::SENSOR_RANGE = 2.5
const uint_t ekf_slam_data_association::SIGHT_EVERY = 5
const real_t ekf_slam_data_association::ODOMETRY_NOISE = 2.0
const std::vector< Point > ekf_slam_data_association::POSTS
const std::vector< Point > ekf_slam_data_association::ROUTE

Function Documentation

◆ main()

int main ( )