10 #include <gtest/gtest.h> 22 TEST(COctoMapTests, updateVoxels)
42 EXPECT_GT(occup, 0.5);
43 EXPECT_TRUE(is_mapped);
47 EXPECT_LT(occup, 0.5);
48 EXPECT_TRUE(is_mapped);
51 TEST(COctoMapTests, insert2DScan)
bool getPointOccupancy(const float x, const float y, const float z, double &prob_occupancy) const
Get the occupancy probability [0,1] of a point.
double x
X,Y,Z coordinates.
void example2DRangeScan(mrpt::obs::CObservation2DRangeScan &s, int i=0)
Example 2D lidar scans (form a venerable SICK LMS200).
This base provides a set of functions for maths stuff.
void updateVoxel(const double x, const double y, const double z, bool occupied)
Manually updates the occupancy of the voxel at (x,y,z) as being occupied (true) or free (false)...
This namespace contains representation of robot actions and observations.
TEST(COctoMapTests, updateVoxels)
A three-dimensional probabilistic occupancy grid, implemented as an octo-tree with the "octomap" C++ ...
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A "CObservation"-derived class that represents a 2D range scan measurement (typically from a laser sc...
bool insertObservation(const mrpt::obs::CObservation &obs, const mrpt::poses::CPose3D *robotPose=nullptr)
Insert the observation information into this map.