10 #include <gtest/gtest.h> 22 TEST(COccupancyGridMap2DTests, insert2DScan)
32 EXPECT_GT(grid.
getPos(0.5, 0), 0.51f);
void example2DRangeScan(mrpt::obs::CObservation2DRangeScan &s, int i=0)
Example 2D lidar scans (form a venerable SICK LMS200).
TEST(COccupancyGridMap2DTests, insert2DScan)
This base provides a set of functions for maths stuff.
This namespace contains representation of robot actions and observations.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
A class for storing an occupancy grid map.
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...
float getPos(float x, float y) const
Read the real valued [0,1] contents of a cell, given its coordinates.
bool insertObservation(const mrpt::obs::CObservation &obs, const mrpt::poses::CPose3D *robotPose=nullptr)
Insert the observation information into this map.