44 template <
class octree_t, 
class octree_node_t>
    60     template <
class OCTOMAP_CLASS>
    84             const bool o_has_parent = o.
m_parent.get() != 
nullptr;
   100             std::ostream& out) 
const override;  
   145                 return m_parent->getOccupancyThres();
   152             return m_parent->getOccupancyThresLog();
   180                 return m_parent->getClampingThresMin();
   188             return m_parent->getClampingThresMinLog();
   195                 return m_parent->getClampingThresMax();
   203             return m_parent->getClampingThresMaxLog();
   242             std::ostream& out) 
const override;  
   298         outObj->insert(gl_obj);
   312         const float x, 
const float y, 
const float z,
   313         double& prob_occupancy) 
const;
   323         const CPointsMap& ptMap, 
const float sensor_x, 
const float sensor_y,
   324         const float sensor_z);
   347         bool ignoreUnknownCells = 
false, 
double maxRange = -1.0) 
const;
   373     template <
class octomap_po
int3d, 
class octomap_po
intcloud>
   377         octomap_pointcloud& scan) 
const;
 void getAs3DObject(mrpt::opengl::CSetOfObjects::Ptr &outObj) const override
Returns a 3D object representing the map. 
 
bool getPointOccupancy(const float x, const float y, const float z, double &prob_occupancy) const
Get the occupancy probability [0,1] of a point. 
 
Options for the conversion of a mrpt::maps::COctoMap into a mrpt::opengl::COctoMapVoxels. 
 
virtual void setProbMiss(double prob)=0
 
void saveMetricMapRepresentationToFile(const std::string &filNamePrefix) const override
This virtual method saves the map to a file "filNamePrefix"+< some_file_extension >...
 
uint32_t decimation
Speed up the likelihood computation by. 
 
bool generateGridLines
Generate grid lines for all octree nodes,. 
 
virtual double getOccupancyThres() const =0
 
virtual double getClampingThresMin() const =0
 
TRenderingOptions renderingOptions
 
This is a virtual base class for sets of options than can be loaded from and/or saved to configuratio...
 
spimpl::impl_ptr< T > pimpl
 
float getClampingThresMaxLog() const
 
void setClampingThresMax(double thresProb)
(key name in .ini files: "clampingThresMax")sets the maximum threshold for occupancy clamping (sensor...
 
void setClampingThresMin(double thresProb)
(key name in .ini files: "clampingThresMin")sets the minimum threshold for occupancy clamping (sensor...
 
virtual void setProbHit(double prob)=0
 
virtual double getClampingThresMax() const =0
 
TRenderingOptions()=default
generateFreeVoxels=true) (Default=true) 
 
void setOccupancyThres(double prob)
insertion (default: true) 
 
bool generateOccupiedVoxels
useful to draw the "structure" of the octree, but computationally costly (Default: false) ...
 
void readFromStream(mrpt::serialization::CArchive &in)
Binary dump to stream. 
 
virtual float getProbHitLog() const =0
 
void writeToStream(mrpt::serialization::CArchive &out) const
Binary dump to stream. 
 
TInsertionOptions & operator=(const TInsertionOptions &o)
COctoMap object: used only in limited situations, since get*() methods don't work, etc. 
 
double maxrange
maximum range for how long individual beams are 
 
TInsertionOptions insertionOptions
The options used when inserting. 
 
double getClampingThresMax() const
 
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
 
A flexible renderer of voxels, typically from a 3D octo map (see mrpt::maps::COctoMap). 
 
virtual void setClampingThresMin(double thresProb)=0
 
mrpt::pimpl< Impl > m_impl
 
TLikelihoodOptions()
Initilization of default parameters. 
 
A cloud of points in 2D or 3D, which can be built from a sequence of laser scans or other sensors...
 
This class allows loading and storing values and vectors of different types from a configuration text...
 
TLikelihoodOptions likelihoodOptions
 
double getProbHit() const
 
A wrapper class for pointers whose copy operations from other objects of the same type are ignored...
 
OCTOMAP_CLASS & getOctomap()
Get a reference to the internal octomap object. 
 
bool visibleOccupiedVoxels
volumes (Default=true) 
 
void writeToStream(mrpt::serialization::CArchive &out) const
Binary dump to stream. 
 
void readFromStream(mrpt::serialization::CArchive &in)
Binary dump to stream. 
 
float getProbHitLog() const
 
COctoMapBase(double resolution)
Constructor, defines the resolution of the octomap (length of each voxel side) 
 
bool internal_build_PointCloud_for_observation(const mrpt::obs::CObservation &obs, const mrpt::poses::CPose3D *robotPose, octomap_point3d &sensorPt, octomap_pointcloud &scan) const
Builds the list of 3D points in global coordinates for a generic observation. 
 
static Ptr Create(Args &&... args)
 
TInsertionOptions()
Especial constructor, not attached to a real. 
 
bool visibleFreeVoxels
(Default=true) 
 
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream. 
 
GLsizei const GLchar ** string
 
bool castRay(const mrpt::math::TPoint3D &origin, const mrpt::math::TPoint3D &direction, mrpt::math::TPoint3D &end, bool ignoreUnknownCells=false, double maxRange=-1.0) const
Performs raycasting in 3d, similar to computeRay(). 
 
double getProbMiss() const
 
bool pruning
inserted (default -1: complete beam) 
 
virtual float getProbMissLog() const =0
 
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion) override
This method load the options from a ".ini"-like file or memory-stored string list. 
 
void setProbMiss(double prob)
(key name in .ini files: "probMiss")sets the probablility for a "miss" (will be converted to logodds)...
 
~COctoMapBase() override=default
 
virtual float getClampingThresMaxLog() const =0
 
float getClampingThresMinLog() const
 
Virtual base class for "archives": classes abstracting I/O streams. 
 
double getOccupancyThres() const
 
Declares a virtual base class for all metric maps storage classes. 
 
A class used to store a 3D pose (a 3D translation + a rotation in 3D). 
 
Declares a class that represents any robot's observation. 
 
virtual double getProbMiss() const =0
 
void loadFromConfigFile(const mrpt::config::CConfigFileBase &source, const std::string §ion) override
This method load the options from a ".ini"-like file or memory-stored string list. 
 
void insertPointCloud(const CPointsMap &ptMap, const float sensor_x, const float sensor_y, const float sensor_z)
Update the octomap with a 2D or 3D scan, given directly as a point cloud and the 3D location of the s...
 
GLsizei GLsizei GLchar * source
 
virtual void setOccupancyThres(double prob)=0
 
virtual float getClampingThresMinLog() const =0
 
void dumpToTextStream(std::ostream &out) const override
This method should clearly display all the contents of the structure in textual form, sending it to a std::ostream. 
 
void setProbHit(double prob)
(key name in .ini files: "probHit")sets the probablility for a "hit" (will be converted to logodds) -...
 
double internal_computeObservationLikelihood(const mrpt::obs::CObservation &obs, const mrpt::poses::CPose3D &takenFrom) override
Internal method called by computeObservationLikelihood() 
 
virtual double getProbHit() const =0
 
virtual float getOccupancyThresLog() const =0
 
With this struct options are provided to the observation insertion process. 
 
bool generateFreeVoxels
generateOccupiedVoxels=true) (Default=true) 
 
~TLikelihoodOptions() override=default
 
float getOccupancyThresLog() const
 
virtual void setClampingThresMax(double thresProb)=0
 
unsigned __int32 uint32_t
 
mrpt::ignored_copy_ptr< myself_t > m_parent
 
float getProbMissLog() const
 
virtual void getAsOctoMapVoxels(mrpt::opengl::COctoMapVoxels &gl_obj) const =0
Builds a renderizable representation of the octomap as a mrpt::opengl::COctoMapVoxels object...
 
double getClampingThresMin() const