127 if (
E_NOERROR == error)
return "No error";
128 else if (
E_NO_CONVERGE == error)
return "Failed to converge";
129 else if (
E_UNDEFINED == error)
return "Undefined value";
130 else if (
E_DEGRADED == error)
return "Converged but degraded solution";
131 else if (
E_NOT_UP_TO_DATE == error)
return "Internal data structures not up to date with Chain";
132 else if (
E_SIZE_MISMATCH == error)
return "The size of the input does not match the internal state";
134 else if (
E_OUT_OF_RANGE == error)
return "The requested index is out of range";
135 else if (
E_NOT_IMPLEMENTED == error)
return "The requested function is not yet implemented";
137 else return "UNKNOWN ERROR";
No error.
Definition: solveri.hpp:91
Chain size changed.
Definition: solveri.hpp:97
Maximum number of iterations exceeded.
Definition: solveri.hpp:101
Solver interface supporting storage and description of the latest error.
Definition: solveri.hpp:84
Input size does not match internal state.
Definition: solveri.hpp:99
virtual void updateInternalDataStructures()=0
Update the internal data structures.
Failed to converge.
Definition: solveri.hpp:93
Undefined value (e.g. computed a NAN, or tan(90 degrees) )
Definition: solveri.hpp:95
Converged but degraded solution (e.g. WDLS with psuedo-inverse singular)
Definition: solveri.hpp:89
Not yet implemented.
Definition: solveri.hpp:105
Definition: articulatedbodyinertia.cpp:28
Internal svd calculation failed.
Definition: solveri.hpp:107
Requested index out of range.
Definition: solveri.hpp:103
SolverI()
Initialize latest error to E_NOERROR.
Definition: solveri.hpp:111
virtual int getError() const
Return the latest error.
Definition: solveri.hpp:119
virtual const char * strError(const int error) const
Return a description of the latest error.
Definition: solveri.hpp:125
virtual ~SolverI()
Definition: solveri.hpp:115
int error
Latest error, initialized to E_NOERROR in constructor.
Definition: solveri.hpp:149