Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
LaserScanGeneratorTest Class Reference
Inheritance diagram for LaserScanGeneratorTest:
Inheritance graph
[legend]

Protected Types

using ScanPoints = std::vector< ScanPoint2D >
 

Protected Member Functions

void check_scan_point (const ScanPoint2D &expected, const ScanPoint2D &actual, const ScanPoint2D &abs_err)
 
void check_scan_points (const ScanPoints &expected, const ScanPoints &actual, const ScanPoint2D &sp_err={Map_Scale/2, 0.001})
 
void dbg_show_map_near_robot (int l, int r, int u, int d)
 
 LaserScanGeneratorTest ()
 
void patch_map (const MapPrimitive &mp, int scale)
 
void prepare_map_and_robot_pose (const MapPrimitive &mp, const RobotPoseDelta &rpd, int scale=Patch_Scale)
 

Protected Attributes

LaserScanGenerator lsg {LaserScannerParams{150, deg2rad(90), deg2rad(180)}}
 
UnboundedPlainGridMap map
 
RobotPose rpose
 

Static Protected Attributes

static constexpr int Map_Height = 100
 
static constexpr double Map_Scale = 1
 
static constexpr int Map_Width = 100
 
static constexpr int Patch_Scale = 10
 

Detailed Description

Definition at line 14 of file laser_scan_generator_test.cpp.

Member Typedef Documentation

using LaserScanGeneratorTest::ScanPoints = std::vector<ScanPoint2D>
protected

Definition at line 21 of file laser_scan_generator_test.cpp.

Constructor & Destructor Documentation

LaserScanGeneratorTest::LaserScanGeneratorTest ( )
inlineprotected

Definition at line 16 of file laser_scan_generator_test.cpp.

Member Function Documentation

void LaserScanGeneratorTest::check_scan_point ( const ScanPoint2D expected,
const ScanPoint2D actual,
const ScanPoint2D abs_err 
)
inlineprotected

Definition at line 52 of file laser_scan_generator_test.cpp.

void LaserScanGeneratorTest::check_scan_points ( const ScanPoints expected,
const ScanPoints actual,
const ScanPoint2D sp_err = {Map_Scale / 2, 0.001} 
)
inlineprotected

Definition at line 41 of file laser_scan_generator_test.cpp.

void LaserScanGeneratorTest::dbg_show_map_near_robot ( int  l,
int  r,
int  u,
int  d 
)
inlineprotected

Definition at line 61 of file laser_scan_generator_test.cpp.

void LaserScanGeneratorTest::patch_map ( const MapPrimitive mp,
int  scale 
)
inlineprotected

Definition at line 36 of file laser_scan_generator_test.cpp.

void LaserScanGeneratorTest::prepare_map_and_robot_pose ( const MapPrimitive mp,
const RobotPoseDelta rpd,
int  scale = Patch_Scale 
)
inlineprotected

Definition at line 29 of file laser_scan_generator_test.cpp.

Member Data Documentation

LaserScanGenerator LaserScanGeneratorTest::lsg {LaserScannerParams{150, deg2rad(90), deg2rad(180)}}
protected

Definition at line 70 of file laser_scan_generator_test.cpp.

UnboundedPlainGridMap LaserScanGeneratorTest::map
protected

Definition at line 68 of file laser_scan_generator_test.cpp.

constexpr int LaserScanGeneratorTest::Map_Height = 100
staticprotected

Definition at line 24 of file laser_scan_generator_test.cpp.

constexpr double LaserScanGeneratorTest::Map_Scale = 1
staticprotected

Definition at line 25 of file laser_scan_generator_test.cpp.

constexpr int LaserScanGeneratorTest::Map_Width = 100
staticprotected

Definition at line 23 of file laser_scan_generator_test.cpp.

constexpr int LaserScanGeneratorTest::Patch_Scale = 10
staticprotected

Definition at line 27 of file laser_scan_generator_test.cpp.

RobotPose LaserScanGeneratorTest::rpose
protected

Definition at line 69 of file laser_scan_generator_test.cpp.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26