#include <miniatureoccupancygrid.hh>
Public Types | |
enum | Occupancy { EMPTY, OCCUPIED } |
Public Member Functions | |
Occupancy | get (double x, double y) const |
boost::mutex::scoped_lock * | get_lock () |
MiniatureOccupancyGrid (double scale=0.05) | |
void | round_coordinates (double x, double y, int &a, int &b) const |
void | set (double x, double y, Occupancy val) |
std::pair< size_t, size_t > | sizes () const |
void | to_msg (nav_msgs::OccupancyGrid &og) const |
Public Attributes | |
double | _scale |
std::vector< std::vector < Occupancy > > | grid |
Private Attributes | |
boost::mutex | data_mutex |
Definition at line 21 of file miniatureoccupancygrid.hh.
Definition at line 25 of file miniatureoccupancygrid.hh.
semanticmodel::MiniatureOccupancyGrid::MiniatureOccupancyGrid | ( | double | scale = 0.05 | ) |
Definition at line 14 of file miniatureoccupancygrid.cc.
MiniatureOccupancyGrid::Occupancy semanticmodel::MiniatureOccupancyGrid::get | ( | double | x, |
double | y | ||
) | const |
Definition at line 26 of file miniatureoccupancygrid.cc.
boost::mutex::scoped_lock * semanticmodel::MiniatureOccupancyGrid::get_lock | ( | ) |
Definition at line 19 of file miniatureoccupancygrid.cc.
void semanticmodel::MiniatureOccupancyGrid::round_coordinates | ( | double | x, |
double | y, | ||
int & | a, | ||
int & | b | ||
) | const |
Definition at line 74 of file miniatureoccupancygrid.cc.
void semanticmodel::MiniatureOccupancyGrid::set | ( | double | x, |
double | y, | ||
MiniatureOccupancyGrid::Occupancy | val | ||
) |
Definition at line 43 of file miniatureoccupancygrid.cc.
std::pair< size_t, size_t > semanticmodel::MiniatureOccupancyGrid::sizes | ( | ) | const |
Definition at line 65 of file miniatureoccupancygrid.cc.
void semanticmodel::MiniatureOccupancyGrid::to_msg | ( | nav_msgs::OccupancyGrid & | og | ) | const |
Definition at line 85 of file miniatureoccupancygrid.cc.
Definition at line 52 of file miniatureoccupancygrid.hh.
boost::mutex semanticmodel::MiniatureOccupancyGrid::data_mutex [mutable, private] |
Definition at line 62 of file miniatureoccupancygrid.hh.
Definition at line 51 of file miniatureoccupancygrid.hh.