bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::estimation::DiffDriveMap Class Reference

What a robot knows about where it drives: the line on the floor, a RoundedRectangle, and the walls and boxes its range sensors can hear. More...

#include <diff_drive_ekf.h>

Public Member Functions

 DiffDriveMap (const trajectory::RoundedRectangle &track, std::vector< Box2d > obstacles)
const trajectory::RoundedRectangle & track () const noexcept
const std::vector< Box2d > & obstacles () const noexcept
real_t ray_cast (real_t x, real_t y, real_t angle, real_t max_range) const
 How far a ray from (x, y) at angle [rad] from the x axis goes before it meets an obstacle, at most max_range [m].

Detailed Description

What a robot knows about where it drives: the line on the floor, a RoundedRectangle, and the walls and boxes its range sensors can hear.

Constructor & Destructor Documentation

◆ DiffDriveMap()

bitsim::estimation::DiffDriveMap::DiffDriveMap ( const trajectory::RoundedRectangle & track,
std::vector< Box2d > obstacles )

Member Function Documentation

◆ obstacles()

const std::vector< Box2d > & bitsim::estimation::DiffDriveMap::obstacles ( ) const
inlinenoexcept

◆ ray_cast()

real_t bitsim::estimation::DiffDriveMap::ray_cast ( real_t x,
real_t y,
real_t angle,
real_t max_range ) const

How far a ray from (x, y) at angle [rad] from the x axis goes before it meets an obstacle, at most max_range [m].

◆ track()

const trajectory::RoundedRectangle & bitsim::estimation::DiffDriveMap::track ( ) const
inlinenoexcept

The documentation for this class was generated from the following files: