#include <occupancy_grid.hpp>
Definition at line 16 of file occupancy_grid.hpp.
Public Member Functions | |
OccupancyGrid (const Util::PropertyMap &props) | |
Constructor. | |
~OccupancyGrid () | |
Destructor. | |
void | laser (const Geometry::Point &source, const Geometry::Point &impact, double maxRange, double obstacleWidth, double p_given_obs, double p_given_free) |
Conditions this occupancy grid on a range observation. | |
void | laser_scan (const Geometry::Point &source, const std::vector< Geometry::Point > &impacts, double maxRange, double obstacleWidth, double p_given_obs, double p_given_free) |
Conditions this occupancy grid on a range observation. | |
void | sonar (const Geometry::Point &source, double angle, double range, double maxRange, double obstacleWidth, double width, double p_given_obs, double p_given_free) |
Conditions this occupancy grid on a sonar observation. | |
template<typename charT, typename traits> void | write (std::basic_ostream< charT, traits > &out) const |
Writes an ASCII representation of the current estimates to the supplied stream. | |
template<typename charT, typename traits> | OccupancyGrid (std::basic_istream< charT, traits > &in) |
Stream constructor. | |
Protected Types | |
typedef Grid< OccupancyEstimator * > | EstimatorGrid |
Protected Attributes | |
EstimatorGrid * | grid |
An index of the grid cells whose occupancies are estimated. |
|
Definition at line 27 of file occupancy_grid.hpp. Referenced by OccupancyGrid(). |
|
Constructor.
Definition at line 11 of file occupancy_grid.cpp. References EstimatorGrid, laser_scan(), Arak::Geometry::Point, Arak::Util::PropertyMap, Arak::Geometry::Rectangle, and sonar(). |
|
Destructor.
Definition at line 107 of file occupancy_grid.cpp. |
|
Stream constructor.
Definition at line 209 of file occupancy_grid.hpp. References EstimatorGrid, Arak::OccupancyGrid::OccupancyEstimator::log_odds, Arak::OccupancyGrid::OccupancyEstimator::prior_log_odds, Arak::Geometry::Rectangle, and Arak::skipcomments(). |
|
Conditions this occupancy grid on a range observation.
Definition at line 117 of file occupancy_grid.cpp. References Arak::OccupancyGrid::OccupancyEstimator::condition(), Arak::Geometry::Point, Arak::Geometry::Segment, and Arak::Geometry::Vector. |
|
Conditions this occupancy grid on a range observation.
Definition at line 149 of file occupancy_grid.cpp. References Arak::OccupancyGrid::OccupancyEstimator::condition(), Arak::Geometry::Line, Arak::Geometry::Point, and Arak::Geometry::Rectangle. Referenced by OccupancyGrid(). |
|
Conditions this occupancy grid on a sonar observation.
Definition at line 210 of file occupancy_grid.cpp. References Arak::OccupancyGrid::OccupancyEstimator::condition(), Arak::Geometry::Direction, Arak::outerApprox(), Arak::Geometry::Point, and Arak::Geometry::Triangle. Referenced by OccupancyGrid(). |
|
Writes an ASCII representation of the current estimates to the supplied stream. The first line gives the number of rows and columns of the grid; the third line is the boundary of the grid. Then the estimates are written out as a matrix (one line per row) in reverse-row order (so the first element corresponds to the upper left corner of the grid). Each estimate is the probability the cell is occupied.
Definition at line 183 of file occupancy_grid.hpp. References Arak::OccupancyGrid::OccupancyEstimator::estimate(). Referenced by main(). |
|
An index of the grid cells whose occupancies are estimated.
Definition at line 84 of file occupancy_grid.hpp. |