Rigid Body Dynamics Library
RBDLSizeMismatchError Class Reference

Thrown if there is a size mismatch that prevents further calculations. More...

#include <rbdl_errors.h>

+ Inheritance diagram for RBDLSizeMismatchError:

Public Member Functions

 RBDLSizeMismatchError (std::string text)
 
- Public Member Functions inherited from RBDLError
 RBDLError (std::string text)
 
virtual const char * what () const noexcept
 

Additional Inherited Members

- Protected Attributes inherited from RBDLError
std::string text
 

Detailed Description

Thrown if there is a size mismatch that prevents further calculations.

This error class is thrown if the operads of a calculation have incompatible sizes. This mostly happens when matrices are of different sizes than expected.

Example of error thrown in addons/geometry/SmoothSegmentedFunction.cc:

158 errormsg << "SmoothSegmentedFunction::updSmoothSegmentedFunction "
159 << _name.c_str()
160 << ": matrices mX and mY must have 6 rows, and the same"
161 << " number of columns."
162 << endl;
Thrown if there is a size mismatch that prevents further calculations.
Definition: rbdl_errors.h:68

Definition at line 67 of file rbdl_errors.h.

Constructor & Destructor Documentation

◆ RBDLSizeMismatchError()

RBDLSizeMismatchError ( std::string  text)

Definition at line 26 of file rbdl_errors.cc.


The documentation for this class was generated from the following files: