Rigid Body Dynamics Library
RBDLDofMismatchError Class Reference

Thrown if there is a dof mismatch. More...

#include <rbdl_errors.h>

+ Inheritance diagram for RBDLDofMismatchError:

Public Member Functions

 RBDLDofMismatchError (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 dof mismatch.

This error class is thrown if the parameter supplied does not match the supported dof of the used model or the supplied dof is not supported by the function used!

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

462 if( !(derivComponents.size() <= 6)) {
463 ostringstream errormsg;
464 errormsg << "SmoothSegmentedFunction::calcDerivative " << _name.c_str()
465 << ": calcDerivative is only valid up to a 6th order derivative"
466 << " but derivComponents had a size of "
467 << derivComponents.size()
468 << endl;
470 }
Thrown if there is a dof mismatch.
Definition: rbdl_errors.h:83

Definition at line 82 of file rbdl_errors.h.

Constructor & Destructor Documentation

◆ RBDLDofMismatchError()

RBDLDofMismatchError ( std::string  text)

Definition at line 24 of file rbdl_errors.cc.


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