Go to the documentation of this file.
33 bool getEdgeInformation(
37 size_t icx,
size_t icy,
39 size_t jcx,
size_t jcy,
42 double& out_edge_information)
override
44 out_edge_information = 1.0 / (1.0 + icx + icy);
51 const double X_SIZE = 10.0;
52 const double Y_SIZE = 10.0;
53 const double RESOLUTION = 0.5;
64 gasmap.setCellsConnectivity(conn);
68 mrpt::make_aligned_shared<mrpt::opengl::CPointCloud>();
69 gl_data->setPointSize(3.0f);
71 for (
int i = 0; i < 20; i++)
78 "Observation: (x,y)=(%6.02f,%6.02f,) => value: %6.03f\n",
x,
y,
80 gl_data->insertPoint(
x,
y,
value);
82 gasmap.insertIndividualReading(
87 gasmap.updateMapEstimation();
91 mrpt::make_aligned_shared<mrpt::opengl::CSetOfObjects>();
92 gasmap.getAs3DObject(glObj);
98 scene->insert(gl_data);
100 win.unlockAccess3DScene();
106 int main(
int argc,
char** argv)
115 cout <<
"MRPT exception caught: " << e.what() << endl;
120 printf(
"Another exception!!");
std::shared_ptr< ConnectivityDescriptor > Ptr
CGasConcentrationGridMap2D represents a PDF of gas concentrations over a 2D area.
@ mrGMRF_SD
Gaussian Markov Random Field, squared differences prior weights between 4 neighboring cells (see disc...
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
CSetOfObjects::Ptr CornerXYZSimple(float scale=1.0, float lineWidth=1.0)
Returns three arrows representing a X,Y,Z 3D corner (just thick lines instead of complex arrows for f...
std::shared_ptr< CPointCloud > Ptr
double drawUniform(const double Min, const double Max)
Generate a uniformly distributed pseudo-random number using the MT19937 algorithm,...
mrpt::gui::CDisplayWindow3D::Ptr win
std::shared_ptr< CSetOfObjects > Ptr
CRandomGenerator & getRandomGenerator()
A static instance of a CRandomGenerator class, for use in single-thread applications.
CRandomFieldGridMap2D represents a 2D grid map where each cell is associated one real-valued property...
GLsizei const GLfloat * value
This base provides a set of functions for maths stuff.
Base class for user-supplied objects capable of describing cells connectivity, used to build prior fa...
std::shared_ptr< COpenGLScene > Ptr
A namespace of pseudo-random numbers generators of diferent distributions.
A graphical user interface (GUI) for efficiently rendering 3D scenes in real-time.
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |