MRPT
1.9.9
|
Computes weighted and un-weighted averages of SO(3) orientations.
Add values to average with append(), when done call get_average(). Use clear() to reset the accumulator and start a new average computation. Theoretical base: Average on SO(3) manifolds is computed by averaging the corresponding matrices, then projecting the result back to the closest matrix in the manifold. Shortly explained in these slides See also: eq. (3.7) in "MEANS AND AVERAGING IN THE GROUP OF ROTATIONS", MAHER MOAKHER, 2002.
Definition at line 83 of file SO_SE_average.h.
#include <mrpt/poses/SO_SE_average.h>
Public Member Functions | |
SO_average () | |
Constructor. More... | |
void | clear () |
Resets the accumulator. More... | |
void | append (const mrpt::math::CMatrixDouble33 &M) |
Adds a new orientation to the computation. More... | |
void | append (const mrpt::math::CMatrixDouble33 &M, const double weight) |
Adds a new orientation to the weighted-average computation. More... | |
mrpt::math::CMatrixDouble33 | get_average () const |
Returns the average orientation. More... | |
Public Attributes | |
bool | enable_exception_on_undeterminate {false} |
(Default=false) Set to true if you want to raise an exception on undetermined average values. More... | |
Private Attributes | |
double | m_count {0} |
mrpt::math::CMatrixDouble33 | m_accum_rot |
mrpt::poses::SO_average< 3 >::SO_average | ( | ) |
Constructor.
void mrpt::poses::SO_average< 3 >::append | ( | const mrpt::math::CMatrixDouble33 & | M | ) |
Adds a new orientation to the computation.
Referenced by run_test_so3_avrg().
void mrpt::poses::SO_average< 3 >::append | ( | const mrpt::math::CMatrixDouble33 & | M, |
const double | weight | ||
) |
Adds a new orientation to the weighted-average computation.
void mrpt::poses::SO_average< 3 >::clear | ( | ) |
Resets the accumulator.
mrpt::math::CMatrixDouble33 mrpt::poses::SO_average< 3 >::get_average | ( | ) | const |
Returns the average orientation.
std::logic_error | If no data point were inserted. |
std::runtime_error | Upon undeterminate average value (ie there was a problem with the SVD) and enable_exception_on_undeterminate is set to true (otherwise, the 0 orientation would be returned) |
Referenced by run_test_so3_avrg().
bool mrpt::poses::SO_average< 3 >::enable_exception_on_undeterminate {false} |
(Default=false) Set to true if you want to raise an exception on undetermined average values.
Definition at line 104 of file SO_SE_average.h.
|
private |
Definition at line 108 of file SO_SE_average.h.
|
private |
Definition at line 107 of file SO_SE_average.h.
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020 |