Public Types | Public Member Functions | Private Attributes | List of all members
LaserScanGridWorld Class Reference

Tracks a robots perception of an environment. The environment is represented by a GridMap; A laser scan with transformation is expected as a sensor data. More...

#include <laser_scan_grid_world.h>

Inheritance diagram for LaserScanGridWorld:
Inheritance graph
[legend]

Public Types

using MapType = GridMap
 
using Point = DiscretePoint2D
 

Public Member Functions

virtual void handle_observation (TransformedLaserScan &scan)
 
virtual void handle_scan_point (MapType &map, double laser_x, double laser_y, double beam_end_x, double beam_end_y, bool is_occ, double quality)
 
 LaserScanGridWorld (std::shared_ptr< GridCellStrategy > gcs, const GridMapParams &init_params)
 
virtual const MapTypemap () const
 Returns the map. More...
 
virtual MapTypemap ()
 
- Public Member Functions inherited from World< TransformedLaserScan, GridMap >
virtual const RobotStatepose () const
 Returns the robot pose. More...
 
virtual void update_robot_pose (double x, double y, double theta)
 
virtual const World< TransformedLaserScan, GridMap > & world () const
 Returns this world. More...
 

Private Attributes

MapType _map
 

Detailed Description

Tracks a robots perception of an environment. The environment is represented by a GridMap; A laser scan with transformation is expected as a sensor data.

Definition at line 22 of file laser_scan_grid_world.h.

Member Typedef Documentation

Definition at line 24 of file laser_scan_grid_world.h.

Definition at line 25 of file laser_scan_grid_world.h.

Constructor & Destructor Documentation

LaserScanGridWorld::LaserScanGridWorld ( std::shared_ptr< GridCellStrategy gcs,
const GridMapParams init_params 
)
inline

Creates a world as a Map of Grid Cells.

Parameters
gcsA shared pointer to a cell strategy.

Definition at line 32 of file laser_scan_grid_world.h.

Member Function Documentation

virtual void LaserScanGridWorld::handle_observation ( TransformedLaserScan scan)
inlinevirtual

Updates the map cells according to a given sensor data. Straightforward scan points projection is used.

Parameters
scanThe current scan from Laser Rangefinder.

Implements World< TransformedLaserScan, GridMap >.

Reimplemented in TinyWorld.

Definition at line 41 of file laser_scan_grid_world.h.

virtual void LaserScanGridWorld::handle_scan_point ( MapType map,
double  laser_x,
double  laser_y,
double  beam_end_x,
double  beam_end_y,
bool  is_occ,
double  quality 
)
inlinevirtual

Updates a cell of a given map according to given parameters.

Parameters
mapA current map.
laser_x,laseryCoordinates of a laser.
beam_end_x,beam_end_yCoordinates of a current point on a scan.
is_occThe current assumption whether the cell is occupied.
qualityA scan quality. The greater the value the more probable the transformed scan.

Reimplemented in TinyWorld.

Definition at line 62 of file laser_scan_grid_world.h.

virtual const MapType& LaserScanGridWorld::map ( ) const
inlinevirtual

Returns the map.

Implements World< TransformedLaserScan, GridMap >.

Definition at line 78 of file laser_scan_grid_world.h.

virtual MapType& LaserScanGridWorld::map ( )
inlinevirtual

Definition at line 79 of file laser_scan_grid_world.h.

Member Data Documentation

MapType LaserScanGridWorld::_map
private

Definition at line 82 of file laser_scan_grid_world.h.


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


tiny_slam
Author(s):
autogenerated on Mon Jun 10 2019 15:30:57