bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
ekf_slam_data_association Namespace Reference

Classes

struct  Score
struct  Seen
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

Enumerations

enum class  Method { ids , nearest_metres , mahalanobis }

Functions

std::vector< Seen > sight (const BoxWorld &world, const Pose &pose, const EKFSlam::Parameters &p, std::mt19937 &rng)
Score run (Method method, real_t radius=0.0)
void report (const std::string &name, const Score &s)
std::string times (uint_t n)
void explain (const std::string &name, const Score &s)
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 real_t ODOMETRY_NOISE = 2.0
const std::vector< Point > POSTS
const std::vector< Point > ROUTE

Typedef Documentation

◆ Point

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

◆ Pose

◆ real_t

◆ uint_t

Enumeration Type Documentation

◆ Method

Enumerator
ids 
nearest_metres 
mahalanobis 

Function Documentation

◆ explain()

void ekf_slam_data_association::explain ( const std::string & name,
const Score & s )

◆ report()

void ekf_slam_data_association::report ( const std::string & name,
const Score & s )

◆ run() [1/2]

void ekf_slam_data_association::run ( )

◆ run() [2/2]

Score ekf_slam_data_association::run ( Method method,
real_t radius = 0.0 )

◆ sight()

std::vector< Seen > ekf_slam_data_association::sight ( const BoxWorld & world,
const Pose & pose,
const EKFSlam::Parameters & p,
std::mt19937 & rng )

◆ times()

std::string ekf_slam_data_association::times ( uint_t n)

◆ wrap_angle()

The angle [rad] wrapped to \((-\pi, \pi]\), so that angles that differ by whole turns compare equal.

Variable Documentation

◆ DT

const real_t ekf_slam_data_association::DT = 0.1

◆ MAX_TURN

const real_t ekf_slam_data_association::MAX_TURN = 1.5

◆ ODOMETRY_NOISE

const real_t ekf_slam_data_association::ODOMETRY_NOISE = 2.0

◆ POSTS

const std::vector<Point> ekf_slam_data_association::POSTS
Initial value:
{{1.0, 0.25}, {2.75, 0.25}, {0.25, 2.5}, {1.25, 2.5}, {2.25, 1.0},
{2.25, 4.0}, {1.0, 4.75}, {3.25, 4.5}, {3.25, 1.5}, {3.95, 1.5},
{4.75, 0.25}, {6.75, 1.75}, {5.25, 3.5}, {7.75, 2.5}, {6.25, 4.75},
{7.25, 0.4}, {4.25, 4.5}, {7.75, 2.9}, {6.65, 4.75}}

◆ ROUTE

const std::vector<Point> ekf_slam_data_association::ROUTE
Initial value:
{{2.8, 0.6}, {2.8, 3.4}, {4.5, 3.4}, {4.5, 0.8}, {7.3, 0.8},
{7.3, 4.7}, {4.5, 4.7}, {4.5, 3.4}, {2.8, 3.4}, {2.4, 4.5},
{0.8, 4.5}, {0.8, 0.8}, {0.5, 0.5}}

◆ SENSOR_RANGE

const real_t ekf_slam_data_association::SENSOR_RANGE = 2.5

◆ SIGHT_EVERY

const uint_t ekf_slam_data_association::SIGHT_EVERY = 5

◆ SPEED

const real_t ekf_slam_data_association::SPEED = 0.3