Main MRPT website > C++ reference
MRPT logo
lib_mrpt_base.h
Go to the documentation of this file.
1 /** \defgroup mrpt_base_grp [mrpt-base]
2 
3 <small> <a href="index.html#libs">Back to list of all libraries</a> | <a href="modules.html" >See all modules</a> </small>
4 <br>
5 
6 <h2>Library <code>mrpt-base</code></h2>
7 <hr>
8 
9 This is the most fundamental library in MRPT, since it provides a vast amount of utilities and OS-abstraction classes upon which
10 the rest of MRPT is built. Here resides critical functionality such as mathematics, linear algebra, serialization, smart pointers
11 and multi-threading.
12 l
13 This library comprises classes in a number of namespaces, briefly described below (click on the namespaces names to see the
14 complete list of its classes):
15 
16 
17 <h3>mrpt::poses</h3>
18 
19 A comprehensive collection of geometry-related classes to represent all kind of 2D and 3D geomtry transformations in different formats
20 (Euler angles, rotation matrices, quaternions), as well as networks of pose constrains (as used typically in SLAM problems).
21 
22 There are also implemented representations for probability distributions over all of these transformations, in a generic way that
23 allow mono and multi-modal Gaussians and particle-based representations.
24 
25 See mrpt::poses for the complete list of classes here.
26 
27 
28 <h3>mrpt::utils</h3>
29 
30 <ul>
31 <li><b>RTTI (RunTime Type Information):</b> A cross-platform, compiler-independent RTTI system is built around the base class
32 mrpt::utils::CObject.</li>
33 
34 <li><b>Smart pointers:</b> Based on the STLplus library, any class CFoo inheriting from CObject, automatically has an associated smart
35 pointer class CFooPtr. MRPT implements advanced smart pointers capable of multi-thread safe usage and smart pointer typecasting with
36 runtime check for correct castings (<a href="http://www.mrpt.org/Smart_pointers" >tutorial</a>).</li>
37 
38 <li><b>Image handling:</b> The class mrpt::utils::CImage represents a wrapper around OpenCV IplImage's, plus extra functionality
39 such as on-the-fly loading of images stored in disk upon first usage. The internal IplImage is always available so OpenCV's functions can
40 be still used to operate on MRPT images. </li>
41 
42 <li><b>Serialization/Persistence:</b> Object serialization in a simple but powerful (including versioning) format
43 is supported by dozens of MRPT classes, all based on mrpt::utils::CSerializable. </li>
44 
45 <li><b>Streams:</b> Stream classes (see the base mrpt::utils::CStream) allow serialization of MRPT objects. There are classes
46 for tranparent GZ-compressed files, sockets, serial ports, etc. </li>
47 
48 <li><b>XML-based databases:</b> Simple databases can be mantained, loaded and saved to files with mrpt::utils::CSimpleDatabase. </li>
49 
50 <li><b>Name-based argument passing:</b> See the structure mrpt::utils::TParameters </li>
51 
52 <li><b>Configuration files:</b> There is one base virtual class (mrpt::utils::CConfigFileBase) which can be used to read/write configuration
53 files (including basic types, vectors, matrices,...) from any "configuration source" transparently (an actual configuration file, a text block
54 created on the fly, etc.). </li>
55 
56 
57 </ul>
58 
59 <h3>mrpt::math</h3>
60 
61 MRPT defines a number of generic <i> math containers</i>, which are:
62 
63 <ul>
64 <li><b>Matrices:</b> Dynamic-size matrices (see mrpt::math::CMatrixDouble) and compile-time fixed-size matrices (see mrpt::math::CMatrixFixedNumeric, mrpt::math::CMatrixDouble33, etc.). </li>
65 <li><b>Vectors:</b> Dynamic-size vectors. See mrpt::vector_double, which inherits from a standard STL vector<double>. </li>
66 <li><b>Arrays:</b> Fixed-size vectors, just like plain C arrays but with support for STL-like iterators and much more. See mrpt::math::CArrayDouble<>. </li>
67 </ul>
68 
69 For a more in-depth description of these types, and their relation to the base Eigen classes,
70 read <a href="http://www.mrpt.org/Matrices_vectors_arrays_and_Linear_Algebra_MRPT_and_Eigen_classes" >this page</a>.
71 
72 Notice that fixed-size containers should be preferred where possible, since they allow more compile-time optimizations.
73 
74 Apart from the containers, this namespace contains much more functionality:
75 
76 <ul>
77 <li>A templatized RANSAC algorithm. </li>
78 <li>Probability distribution functions. </li>
79 <li>Statistics: mean, covariance, covariance of weighted samples, etc... from sets of data.</li>
80 <li>A huge amount of geometry-related functions: Lines (mrpt::math::TLine3D), planes (mrpt::math::TPlane3D), segments, polygons, intersections between them, etc. </li>
81 <li>Graph-related stuff: generic directed graphs (mrpt::math::CDirectedGraph) and trees (mrpt::math::CDirectedTree).</li>
82 <li>PDF transformations (uncertainty propagation): See mrpt::math::transform_gaussian_linear, mrpt::math::transform_gaussian_montecarlo, mrpt::math::transform_gaussian_unscented.</li>
83 <li>A templatized implementation of quaternions, mrpt::math::CQuaternion, with support for rotation matrix convertions, Jacobians, etc.</li>
84 </ul>
85 
86 
87 
88 <h3>mrpt::synch</h3>
89 
90 This namespace includes threading tools such as critical sections, semaphores or utilities such as the template mrpt::synch::CThreadSafeVariable
91 that converts any variable into a pair variable-critical section.
92 
93 
94 <h3>mrpt::system</h3>
95 
96 Here can be found functions for filesystem managing, watching directories, creating and handling threads in an OS-independent way, etc.
97 
98 
99 <h3>mrpt::compress</h3>
100 
101 GZip compression methods can be found in this namespace.
102 
103 
104 */
105 



Page generated by Doxygen 1.8.3 for MRPT 0.9.6 SVN: at Fri Feb 15 22:05:02 EST 2013