Go to the documentation of this file.
44 p1.
cov(0, 1) = 0.002f;
45 p1.
cov(1, 0) = 0.002f;
47 p1.
cov(2, 2) = 0.0002f;
51 p2.
cov(0, 1) = -0.004f;
52 p2.
cov(1, 0) = -0.004f;
54 p2.
cov(2, 2) = 0.0002f;
63 printf(
"Time for computing: %.04fus\n", tictac.
Tac() * 1e+6f / 10000);
65 printf(
"product p1,p2 -> %f\n",
v);
69 p.bayesianFusion(p1, p2);
70 p.saveToTextFile(
"BayesFusion.txt");
72 cout <<
"Bayesian fusing of p1 & p2: " << endl;
73 cout <<
" MEAN: " <<
p.mean <<
" COV:" << endl <<
p.cov << endl;
92 cout <<
"A:\n" << A << endl;
93 cout <<
"B:\n" << B << endl;
94 cout <<
"C:\n" << C << endl;
109 cout <<
"a= " <<
a << endl;
110 cout <<
"b= " <<
b << endl;
115 printf(
"%f us\t", tictac.
Tac() * 1e6);
116 cout <<
"a+b= " << D << endl;
120 printf(
"%f us\t", tictac.
Tac() * 1e6);
121 cout <<
"b-a= " << D << endl;
125 printf(
"%f us\t", tictac.
Tac() * 1e6);
126 cout <<
"a + (b-a)= " << D << endl;
145 cout <<
"Pose[0] in seq.= " << D << endl;
147 cout <<
"Pose[1] in seq.= " << D << endl;
149 cout <<
"Pose[2] in seq.= " << D << endl;
166 cout <<
"MRPT exception caught: " << e.what() << endl;
171 printf(
"Untyped exception!!");
mrpt::math::CMatrixDouble33 cov
The 3x3 covariance matrix.
A high-performance stopwatch, with typical resolution of nanoseconds.
void appendPose(CPose2D &newPose)
Appends a new pose at the end of sequence.
A gaussian distribution for 3D points.
void getPose(unsigned int ind, CPose2D &outPose)
Reads the stored pose at index "ind", where the first one is 0, the last "posesCount() - 1".
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
Classes for 2D/3D geometry representation, both of single values and probability density distribution...
double Tac() noexcept
Stops the stopwatch.
A class used to store a 2D pose, including the 2D coordinate point and a heading (phi) angle.
A class used to store a 3D pose (a 3D translation + a rotation in 3D).
This class stores a sequence of relative, incremental 2D poses.
void TestPosePDFOperations()
void Tic() noexcept
Starts the stopwatch.
double productIntegralWith(const CPointPDFGaussian &p) const
Computes the "correspondence likelihood" of this PDF with another one: This is implemented as the int...
double productIntegralNormalizedWith(const CPointPDFGaussian &p) const
Computes the "correspondence likelihood" of this PDF with another one: This is implemented as the int...
CPose2D absolutePoseAfterAll()
A shortcut for "absolutePoseOf( posesCount() )".
void TestPoseComposition()
A class used to store a 3D point.
CPoint3D mean
The mean value.
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
GLubyte GLubyte GLubyte a
double DEG2RAD(const double x)
Degrees to radians.
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 | |