Jafar
|
This class is a map that keeps records of places frome where a landmark was or was not visible, in order to avoid to repeatedly search a landmark from a place it cannot be seen. More...
This class is a map that keeps records of places frome where a landmark was or was not visible, in order to avoid to repeatedly search a landmark from a place it cannot be seen.
Definition at line 28 of file visibilityMap.hpp.
#include <visibilityMap.hpp>
Classes | |
struct | Cell |
Public Member Functions | |
VisibilityMap (double angularRes, double distInit, double distFactor, int nDist, int nCertainty) | |
Constructor. | |
void | addObservation (const observation_ptr_t obsPtr) |
add an observation to the map | |
void | estimateVisibility (const observation_ptr_t obsPtr, double &visibility, double &certainty) |
return the score of visibility and its certainty (both beween 0 and 1) | |
Protected Member Functions | |
Cell * | getCell (const observation_ptr_t obsPtr, bool create=false) |
Protected Attributes | |
SphericalGrid< Cell > | grid |
double | nCertainty |
Cell * | lastCell |
double | lastVis |
double | lastVisUncert |
Friends | |
std::ostream & | operator<< (std::ostream &s, Cell const &cell) |
std::ostream & | operator<< (std::ostream &s, VisibilityMap const &vismap) |
jafar::rtslam::VisibilityMap::VisibilityMap | ( | double | angularRes, |
double | distInit, | ||
double | distFactor, | ||
int | nDist, | ||
int | nCertainty | ||
) |
Constructor.
angularRes | the angular resolution of the map (yaw and pitch) |
distInit,distFactor,nDist | borders between the depth cells are distInit,distInit*distFactor,...,distInit*distFactor^(nDist-2) -> nDist depth cells |
nCertainty | a visibility score is supposed to be completely certain if at least nCertainty observations were used to compute it |
Generated on Wed Oct 15 2014 00:37:46 for Jafar by doxygen 1.7.6.1 |